Important: The information in this document is obsolete and should not be used for new development.
Converting Numeric Representations Into Date and Time Strings
This section describes the routines that you can use to convert numeric representations of date and time values into formatted strings. The numeric representation used in these routines is the standard date-time representation: a 32-bit integer value that is returned by theGetDateTimeroutine. This is a long integer value that represents the number of seconds between midnight, January 1, 1904, and the time at which GetDateTime was called, as described in the book Inside Macintosh: Operating System Utilities.
- The
DateStringprocedure converts a date in the standard date-time representation into a string, making use of the date formatting information from a specified resource. If you specifyNILas the value of the resource handle parameter,DateStringuses information from the current script.- The
TimeStringprocedure converts a time in the standard date-time representation into a string, making use of the time formatting information from a specified resource. If you specifyNILas the value of the resource handle parameter,TimeStringuses information from the current script.
Subtopics
- DateString
- TimeString