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 Date-Time Formats


SecondsToDate

You can use the SecondsToDate 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
The SecondsToDate procedure converts the number of seconds, specified in the s parameter, to a date and time. The date and time values are returned in the d parameter.

The SecondsToDate procedure is also available as the Secs2Date procedure.

ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit for this routine are
Registers on entry
D0Seconds since midnight, January 1, 1904
A0Pointer to a date-time record
Registers on exit
A0Pointer to a date-time record

SEE ALSO
For a complete description of the date-time record, see page 4-23.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996