Important: The information in this document is obsolete and should not be used for new development.
SecondsToDate
You can use theSecondsToDate
procedure to convert a number of seconds elapsed since midnight, January 1, 1904 to a date and time.
PROCEDURE SecondsToDate (s: LongInt; VAR d: DateTimeRec);
s
- The number of seconds elapsed since midnight, January 1, 1904.
d
- On return, the fields of the date-time record that contain the date and time corresponding to the value indicated in the
s
parameter.DESCRIPTION
TheSecondsToDate
procedure converts the number of seconds, specified in thes
parameter, to a date and time. The date and time values are returned in thed
parameter.The
SecondsToDate
procedure is also available as theSecs2Date
procedure.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for this routine are
Registers on entry D0 Seconds since midnight, January 1, 1904 A0 Pointer to a date-time record
Registers on exit A0 Pointer to a date-time record SEE ALSO
For a complete description of the date-time record, see page 4-23.