![]() |
ReadDateTime |
||||
Header: | DateTimeUtils.h | Carbon status: | Supported | |
Copies the date-time information from the clock chip into low memory.
OSErr ReadDateTime ( UInt32 *time );
On return, the current time expressed as the number of seconds elapsed since midnight, January 1, 1904.
A result code. If the clock chip cannot be read, ReadDateTime returns the clkRdErr result code. The operation might fail if the clock chip is damaged. Otherwise, the function returns the noErr result code.
System software uses this function at startup time. Your application should never need to use this function.
The low-memory copy of the date and time information is accessible through the global variable Time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)