MakeDateTime (open)

Returns a DateTime value from year, month, day, hour, minute and second values

Syntax

LOADLIB "wh::datetime.whlib";

DATETIME FUNCTION MakeDateTime(INTEGER year, INTEGER month, INTEGER day, INTEGER hour, INTEGER minute, INTEGER second, INTEGER mseconds)

Parameters

INTEGER year

An integer, representing the year

INTEGER month

An integer, representing the month

INTEGER day

An integer, representing the day

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

A DateTime value representing {@italic hour}-{@italic minute}-{@italic second} hours at date {@italic day}-{@italic month}-{@italic year} The default datetime is returned if the specified values are out of range.

Examples

// returns a DateTime representing 15:24:34 hours at August 31st 1997
DATETIME theDate:= MakeDate (1974, 8, 31, 15, 24, 34);