Important: The information in this document is obsolete and should not be used for new development.
DateToSeconds
You can use theDateToSeconds
procedure to convert a date and time to a number of seconds elapsed since midnight, January 1, 1904.
PROCEDURE DateToSeconds (d: DateTimeRec; VAR s: LongInt);
d
- The date-time record containing the date and time to convert.
s
- On return, the number of seconds elapsed between midnight, January 1, 1904, and the time specified in the
d
parameter.DESCRIPTION
TheDateToSeconds
procedure converts the date and time specified in thed
parameter to the number of seconds elapsed since midnight, January 1, 1904. The number of seconds are returned in thes
parameter. For example, specifying a date and time of 5:50 A.M. on June 13, 1990 results in 41627 being returned in thes
parameter.The
DateToSeconds
procedure is also available as theDate2Secs
procedure.ASSEMBLY-LANGUAGE INFORMATION
You must set up register A0 with a pointer to the date and time record containing the date and time you wish to convert. WhenDateToSeconds
returns, register D0 contains a long integer representing the converted date and time.The registers on entry and exit for this routine are
Registers on entry A0 Pointer to date-time record
Registers on exit D0 Corresponding seconds since midnight, January 1, 1904 SEE ALSO
For a complete description of the date-time record, see page 4-23.