Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%WeekOfYearStartTime function


Function
The function returns the beginning time of the week given by the function arguments.


Declaration


Blok kódu
languageesl
themeConfluence
TIME %WeekStartTime%WeekOfYearStartTime(
   INT  in year,
   INT  in week,
   TEXT in timeZone := %GetCurrentTimeZone()
 )


Parameters


yearYear.
weekSerial number of the week (week begins on Monday). Serial number of the week is returned by function WeekNr %WeekNr.
timeZone

Zahrnúť stránku
timeZone
timeZone


Example


Blok kódu
languageesl
themeRDark
%WeekStartTime%WeekOfYearStartTime(20022021,25 1)   ; the result is the abs. time that determines beginning of 25th1st week of year of 20022021 - 1704. 601. 20022021


Note

For yearly recurrence pattern rules, the The first week of the calendar year is the first week that contains at least four days in that calendar year.
This function does not take this assumption into account.
For this reason, the function may generate a time offset by 1 week for some years.To avoid this difference, we recommend you to use the function %WeekOfYearStartTime.