Table of Contents

TTimeBasedOtp.RemainingSeconds Method

Overloads

TTimeBasedOtp.RemainingSeconds

Gets the remaining seconds until the next OTP value is generated.

Syntax

Unit: Sphinx.Otp

function TTimeBasedOtp.RemainingSeconds: Integer; overload;

See also

TTimeBasedOtp.RemainingSeconds(TDateTime, Boolean)

Gets the remaining seconds until the next OTP value is generated for a specific DateTime.

Syntax

Unit: Sphinx.Otp

function TTimeBasedOtp.RemainingSeconds(DateTime: TDateTime; InputIsUTC: Boolean = False): Int64; overload;

Parameters

<-> Parameter Type Description
DateTime TDateTime The DateTime to calculate the remaining seconds for.
InputIsUTC Boolean Optional: Default value is False

Indicates if the provided DateTime is in UTC.

Returns

The remaining seconds.

See also