18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Date & Time functions<br />

These functions are used to interact with the system clock or manipulate timestamps.<br />

ClockGetDate<br />

Calculates the date, based on how many seconds have elapsed since 12:00 AM GMT on January 1, 1970<br />

(taking into account the current time zone of the computer).<br />

Function Group Execution Windows Embedded Thin Client<br />

ClockGetDate Date & Time Synchronous Supported Supported Supported<br />

Syntax<br />

ClockGetDate( numSeconds )<br />

numSeconds<br />

The number of seconds elapsed since 12:00 AM GMT on January 1, 1970.<br />

Returned value<br />

Returns the date calculated in string format.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag ClockGetDate( 0 ) // If the computer is in the Central time zone. Returned value = 12/31/1969<br />

Tag ClockGetDate( 1018886359 ) // If the computer is in the Central time zone. Returned value = 04/15/2002<br />

Note: This function takes into account the current Time Zone as specified in the Control Panel of<br />

the local computer.<br />

ClockGetDayOfWeek<br />

Calculates the day of the week, based on how many seconds have elapsed since 12:00 AM GMT on January 1,<br />

1970 (taking into account the current time zone of the local computer).<br />

Function Group Execution Windows Embedded Thin Client<br />

ClockGetDayOfWeek Date & Time Synchronous Supported Supported Supported<br />

Syntax<br />

ClockGetDayOfWeek( numSeconds )<br />

numSeconds<br />

The number of seconds elapsed since 12:00 AM GMT on January 1, 1970<br />

Returned value<br />

Returns the day of the week (calculated in integer format) as follows:<br />

0 Sunday<br />

1 Monday<br />

Page 570<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!