Functions


Converting Between Date-Time Formats

DateToSeconds Converts a date and time to a number of seconds elapsed since midnight, January 1, 1904.
SecondsToDate Converts a number of seconds elapsed since midnight, January 1, 1904 to a date and time.

Converting Between Long Date-Time Format

LongDateToSeconds Converts a date and time to the number of seconds elapsed since midnight, January 1, 1904.
LongSecondsToDate Converts the number of seconds elapsed since midnight, January 1, 1904 to a date and time.

Converting Date and Time Strings Into Numeric Representations

InitDateCache Initializes the date cache structure, which is used to store data for use by the StringToDate and StringToTime functions.
StringToDate Parses a string for a date and converts the date information into values in a date-time structure.
StringToTime Parses a string for a time specification and converts the date information into values in a date-time structure.

Converting Long Date and Time Values Into Strings

LongDateString Converts a date that is specified as a LongDateTime value into a Pascal string, making use of the date formatting information in the specified resource.
LongTimeString Converts a time that is specified as a LongDateTime value into a Pascal string, making use of the time formatting information in the specified resource.

Converting Numeric Representations Into Date and Time Strings

DateString Converts a date in the standard date-time representation into a Pascal string, making use of the date formatting information in the specified resource.
TimeString Converts a time in the standard date-time representation into a string, making use of the time formatting information in the specified resource.

Getting the Current Date and Time

GetDateTime Obtains the current date-time information, expressed as the number of seconds elapsed since midnight, January 1, 1904.
GetTime Obtains the current date-time information, expressed as a date and time.
ReadDateTime Copies the date-time information from the clock chip into low memory.

Modifying and Verifying Long Date-Time Records

ToggleDate Modifies a date and time, by modifying one specific component of a date and time (day, hour, minute, seconds, day of week, and so on).
ValidDate Verifies specific date and time values in a long date-time structure.

Setting the Current Date and Time

SetDateTime Changes the date-time information stored in the clock chip to the specified value, expressed as the number of seconds elapsed since midnight, January 1, 1904.
SetTime Changes the date-time information in the clock chip to the specified value, expressed as a date and time.

Miscellaneous

ConvertLocalTimeToUTC
ConvertLocalToUTCDateTime
ConvertUTCToLocalDateTime
ConvertUTCToLocalTime
GetLocalDateTime
GetLocalTime
GetUTCDateTime
GetUTCTime
IUDatePString
IUDateString
IULDateString
IULTimeString
IUTimePString
IUTimeString
LocalToUTCTime
SetLocalDateTime
SetLocalTime
SetUTCDateTime
SetUTCTime
UTCToLocalTime
iudatepstring
iudatestring
iuldatestring
iultimestring
iutimepstring
iutimestring

© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)