Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Operating System Utilities /
Chapter 4 - Date, Time, and Measurement Utilities / Date, Time, and Measurement Utilities Reference
Routines / Converting Between Long Date-Time Format


LongSecondsToDate

You can use the LongSecondsToDate procedure 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 lSecs parameter.
DESCRIPTION
The LongSecondsToDate procedure converts the representation of the date-time information from a number of seconds, specified in the lSecs parameter, to a date and time. The date and time are returned in the lDate parameter 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 the lDate parameter.

The LongSecondsToDate procedure is also available as the LongSecs2Date procedure.

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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996