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 yearAn integer, representing the year
INTEGER monthAn integer, representing the month
INTEGER dayAn integer, representing the day
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
DATETIMEA 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);