Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%WeekDay function
Function
The function returns the time component - weekday - of given absolute time.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
INT %WeekDay( TIME in Arg, TEXT in timeZone := %GetCurrentTimeZone() ) |
Parameters
Arg | Function argument. |
timeZone |
Note: For historical reasons, integer parameter is also accepted. Its interpretation is as follows: 0 - zone "Europe/London", 3600 - zone "Europe/Bratislava", 7200 - zone "Europe/Kiev", 21600 - zone "Asia/Almaty". Usage of integer parameter is deprecated and generates warning into log file!
|
Note
The following values are assigned to the days of week:
- Monday = 1
- Tuesday = 2
- Wednesday = 3
- Thursday = 4
- Friday = 5
- Saturday = 6
- Sunday = 0
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
%WeekDay(SysTime) ; the result is the current weekday of the system time |