GetClock

Calculates how many seconds have elapsed since 12:00 AM GMT on January 1, 1970, at the moment the function was run (taking into account the current time zone, as specified on the local computer).

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

Syntax

GetClock( )

This function takes no parameters.

Returned value

Returns the number of seconds that have elapsed since 12:00 AM GMT on January 1, 1970, at the moment the function was run.

Examples

Tag Name Expression
Tag GetClock() // If executed at 10:59:19 AM April 15th 2002 CST. Returned value = 101886359
Tag GetClock() // If executed at 00:00:00 January 1st 1970 GMT. Returned value = 0
Note: This function takes the current Time Zone into account, as specified in the Control Panel of the local computer.