Skip to content

DateGetSecond

See Also: Time and Date Functions

Purpose

The DateGetSecond function returns the second component of the given DateTime variable, dtVar.

Return Type

Integer

Syntax

DateGetSecond({dtVar})

Parameters

Example

Procedure test
    DateTime dtVar
    // Get the current local date and time
    Move (CurrentDateTime()) To dtVar
    Showln "The Second of " dtVar " is: " (DateGetSecond(dtVar))
End_Procedure