ClockGetDate

Calculates the date, based on how many seconds have elapsed since 12:00 AM GMT on January 1, 1970 (taking into account the current time zone of the computer).

Function Group Execution Windows Embedded Thin Client
ClockGetDate Date & Time Synchronous Supported Supported Supported

Syntax

ClockGetDate( numSeconds )
numSeconds
The number of seconds elapsed since 12:00 AM GMT on January 1, 1970.

Returned value

Returns the date calculated in string format.

Examples

Tag Name Expression
Tag ClockGetDate( 0 ) // If the computer is in the Central time zone. Returned value = 12/31/1969
Tag ClockGetDate( 1018886359 ) // If the computer is in the Central time zone. Returned value = 04/15/2002
Note: This function takes into account the current Time Zone as specified in the Control Panel of the local computer.