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

The Date, Time, and Measurement Utilities provide two procedures, LongSecondsToDate and LongDateToSeconds, that you can use to convert between long date-time formats. You can convert a number of seconds to a date and time and a date and time to a number of seconds.

If you use a long date-time value (used to access a number of seconds) or a long date-time record (used to access a date and time) to access date-time information, you can use the LongSecondsToDate and LongDateToSeconds procedures to convert between these date-time formats. Use the LongSecondsToDate procedure to convert a number of seconds to a date and time, and use the LongDateToSeconds procedure to convert a date and time to a number of seconds.

Note
The system software uses the LongSecondsToDate and LongDateToSeconds procedures provided by the current script system.

Subtopics
LongSecondsToDate
LongDateToSeconds

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996