%WeekStartTime function


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


Declaration


TIME %WeekStartTime(
   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


%WeekStartTime(2002,25)   ; the result is the abs. time that determines beginning of 25th week of year of 2002 - 17. 6. 2002