MakeDateTimeFromWeek (open)
Returns a DateTime value for a specified week
Syntax
LOADLIB "wh::datetime.whlib";
DATETIME FUNCTION MakeDateTimeFromWeek(INTEGER year, INTEGER week, INTEGER weekday, INTEGER hour, INTEGER minute, INTEGER second, INTEGER mseconds)Parameters
INTEGER yearThe weekyear
INTEGER weekThe week number
INTEGER weekdayThe day of the week (1=monday, ..., 7=sunday)
INTEGER hourAn integer, representing the hour
INTEGER minuteAn integer, representing the minute
INTEGER secondAn integer, representing the second
INTEGER msecondsOptional, the number of milliseconds
Return value
DATETIMEThe requested date, or DEFAULT DATETIME if any of the parameters was incorrect
Examples
// returns a DateTime representing 15:24:34 hours at August 31st 1997
DATETIME theDate:= MakeDate (1974, 8, 31, 15, 24, 34);