Table of Contents

TTimeBasedOtp.Calculate Method

Overloads

TTimeBasedOtp.Calculate

Calculates the current OTP value based on the current time.

Syntax

Unit: Sphinx.Otp

function TTimeBasedOtp.Calculate: Int64; overload;

See also

TTimeBasedOtp.Calculate(TDateTime, Boolean)

Calculates the OTP value for a given DateTime.

Syntax

Unit: Sphinx.Otp

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

Parameters

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

Indicates if the provided DateTime is in UTC.

Returns

The calculated OTP value.

See also