Search Results for

    Show / Hide Table of Contents

    TTimeBasedOtp.Calculate Method

    Overloads

    • TTimeBasedOtp.Calculate
    • TTimeBasedOtp.Calculate(TDateTime, Boolean)

    TTimeBasedOtp.Calculate

    Calculates the current OTP value based on the current time.

    Syntax

    Unit: Sphinx.Otp

    function TTimeBasedOtp.Calculate: Int64; overload;

    See also

    • TTimeBasedOtp

    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

    • TTimeBasedOtp
    In This Article
    Back to top TMS Sphinx v1.15
    © 2021 - 2025 tmssoftware.com