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

The Date, Time, and Measurement Utilities provide two procedure, SecondsToDate and DateToSeconds, that you can use to convert between 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 standard date-time value (used to access a number of seconds) or a date-time record (used to access a date and time) to access date-time information, you can use the SecondsToDate and DateToSeconds procedures to convert between these date-time formats. Use the SecondsToDate procedure to convert a number of seconds to a date and time, and use the DateToSeconds procedure to convert a date and time to a number of seconds.

Note
The system software uses the SecondsToDate and DateToSeconds procedures provided by the current script system.

Subtopics
SecondsToDate
DateToSeconds

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