Checks a ClockData structure for legal date.
Source position: utility.pas line 273
function CheckDate( |
const Date: PClockData |
):LongWord; |
Date |
|
A ClockData structure desribing the date to check. |
If the date is valid, the number of seconds from midnight 1-Jan-1978 AD to the date, or 0 if the date is invalud.
Examine the date described in the ClockData structure and determine whether it is a valid date. In particular this checks whether the ranges of the fields are within normal limits.
This function does not check whether the wday field of the ClockData structure is valid.
The date 01-Jan-78 00:00:00 is actually returned as invalid.
This also assumes that the ClockDate refers to a date in the Gregorian calendar. (60 sec/min, 60 min/hour, 24 hr/day, 12 months/year).
|
Fill in a ClockData structure based on a system time stamp |
|
|
Calculate seconds from 01-Jan-1978. |