Important: The information in this document is obsolete and should not be used for new development.
LongSecondsToDate
You can use theLongSecondsToDateprocedure to convert the number of seconds elapsed since midnight, January 1, 1904 to a date and time.
PROCEDURE LongSecondsToDate (lSecs: LongDateTime; VAR lDate: LongDateRec);
lSecs- The number of seconds elapsed since midnight, January 1, 1904.
lDate- On return, the fields of the long date-time record that contain the date and time corresponding to the value indicated in the
lSecsparameter.DESCRIPTION
TheLongSecondsToDateprocedure converts the representation of the date-time information from a number of seconds, specified in thelSecsparameter, to a date and time. The date and time are returned in thelDateparameter as values in the date-time record. For example, specifying the number of seconds 41627 results in the date and time 5:50 A.M. on June 13, 1990 being returned in thelDateparameter.The
LongSecondsToDateprocedure is also available as theLongSecs2Dateprocedure.SEE ALSO
To learn more about the long date-time value, see the section page 4-25. For more information on the long date-time record, see page 4-26.