Porovnávané verzie

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
languageesl
themeConfluence
INT %WeekDay(
   TIME in Arg,
   INTTEXT  in timeZone :=  %GetTimeZone%GetCurrentTimeZone()
 )


Parameters


ArgFunction argument.
timeZone
Forced time zone to convert to a local time. It is set as a time zone offset from UTC during winter in seconds.

Zahrnúť stránku
timeZone
timeZone


Note

The following values are assigned to the days of the week:

  • Monday = 1
  • Tuesday   = 2
  • Wednesday   = 3
  • Thursday  = 4
  • Friday   = 5
  • Saturday   = 6
  • Sunday   = 0
Example


Blok kódu
languageesl
themeRDark
%WeekDay(SysTime)     ; the result is the current weekday of the system time