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 theGetDateTime
routine. 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
DateString
procedure 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 specifyNIL
as the value of the resource handle parameter,DateString
uses information from the current script.- The
TimeString
procedure 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 specifyNIL
as the value of the resource handle parameter,TimeString
uses information from the current script.
Subtopics
- DateString
- TimeString