%WeekOfYearStartTime function


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


Declaration


TIME %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.
timeZone


Example


%WeekOfYearStartTime(2021, 1)   ; the result is the abs. time that determines beginning of 1st week of year of 2021 - 04.01.2021


Note

The first week of the calendar year is the first week that contains at least four days in that calendar year.