omron — Hour2Clock

Appendix: Built-in Scripting Language Examples Note: This function takes into account the current Time Zone, as specified in the Control Panel of the local computer. 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). 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 Note: This function takes the current Time Zone into account, as specified in the Control Panel of the local computer.

Hour2Clock Converts time in the HH:MM:SS format into seconds. Syntax Hour2Clock( strTime ) strTime The number of hours, minutes, and seconds in HH:MM:SS format. Returned value Returns the number of seconds equivalent to the total number of hours, minutes, and seconds specified. Examples Page 480 InduSoft Web Studio Tag Name Expression Tag DateTime2Clock( "12/31/1969", "18:00:00" ) // If the computer is in the Central time zone. Returned value = 0 Tag DateTime2Clock( "04/15/2002", "10:59:19" ) // If the computer is in the Central time zone.

Returned value = 01018886359 Function Group Execution Windows Embedded Thin Client GetClock Date & Time Synchronous Supported Supported Supported 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 Function Group Execution Windows Embedded Thin Client Hour2Clock Date & Time Synchronous Supported Supported Supported Tag Name Expression Tag Hour2Clock( "01:00:00" ) // Returned value = 3600