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 year

The weekyear

INTEGER week

The week number

INTEGER weekday

The day of the week (1=monday, ..., 7=sunday)

INTEGER hour

An integer, representing the hour

INTEGER minute

An integer, representing the minute

INTEGER second

An integer, representing the second

INTEGER mseconds

Optional, the number of milliseconds

Return value

DATETIME

The 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);