Important: The information in this document is obsolete and should not be used for new development.
Converting Between Date-Time Formats
The Date, Time, and Measurement Utilities provide two procedure,SecondsToDateandDateToSeconds, 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
SecondsToDateandDateToSecondsprocedures to convert between these date-time formats. Use theSecondsToDateprocedure to convert a number of seconds to a date and time, and use theDateToSecondsprocedure to convert a date and time to a number of seconds.
- Note
- The system software uses the
SecondsToDateandDateToSecondsprocedures provided by the current script system.![]()
Subtopics
- SecondsToDate
- DateToSeconds