Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

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


LongDateToSeconds

You can use the LongDateToSeconds procedure to convert a date and time to the number of seconds elapsed since midnight, January 1, 1904.

PROCEDURE LongDateToSeconds (lDate: LongDateRec; 
                             VAR lSecs: LongDateTime);
lDate
The long date-time record containing the date and time to convert.
lSecs
On return, the number of seconds elapsed since midnight, January 1, 1904, and the time specified in the lDate parameter.
DESCRIPTION
The LongDateToSeconds procedure converts the representation of the date-time information from a date and time, specified in the lDate parameter, to the number of seconds elapsed since midnight, January 1, 1904. The number of seconds are returned as a long date-time value in the lSecs parameter. For example, specifying the date and time 5:50 A.M. on June 13, 1990 results in 41627 being returned in the lSecs parameter.

The LongDateToSeconds procedure is also available as the LongDate2Secs procedure.

SEE ALSO
To learn more about the long date-time value, see 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

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice