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).
Function |
Group |
Execution |
Windows |
Embedded |
Thin Client |
ClockGetDayOfWeek
|
Date &
Time |
Synchronous |
Supported |
Supported |
Supported |
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:
0 |
Sunday |
1 |
Monday |
2 |
Tuesday |
3 |
Wednesday |
4 |
Thursday |
5 |
Friday |
6 |
Saturday |
Examples
Tag Name |
Expression |
Tag |
ClockGetDayOfWeek( 0 ) // If the
computer is in the Central time zone. Returned value = 3 |
Tag |
ClockGetDayOfWeek( 1018886359 ) //
If the computer is in the Central time zone. Returned value =
1 |
Note: This
function takes into account the current Time Zone, as specified in
the Control Panel of the local computer.