Appendix: Built-in Scripting Language Date & Time functions These functions are used to interact with the system clock or manipulate timestamps. 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). 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 Note: This function takes into account the current Time Zone as specified in the Control Panel of the local computer.
ClockGetDayOfWeek Calculates the day of the week, 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 local computer). Syntax ClockGetDayOfWeek( numSeconds ) numSeconds The number of seconds elapsed since 12:00 AM GMT on January 1, 1970 Returned value Returns the day of the week (calculated in integer format) as follows: Page 478 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client ClockGetDate Date & Time Synchronous Supported Supported Supported 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 Function Group Execution Windows Embedded Thin Client ClockGetDayOf WeDeakte & Time Synchronous Supported Supported Supported 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday