![]() |
LongSecondsToDate |
||||
Header: | DateTimeUtils.h | Carbon status: | Supported | |
Converts the number of seconds elapsed since midnight, January 1, 1904 to a date and time.
void LongSecondsToDate ( const LongDateTime *lSecs, LongDateRec *lDate );
The number of seconds elapsed since midnight, January 1, 1904.
On return, the fields of the long date-time structure that contain the date and time corresponding to the value indicated in the lSecs parameter. For example, specifying the number of seconds 41627 results in the date and time 5:50 A.M. on June 13, 1990 being returned in this parameter.
The system software uses the LongSecondsToDate function provided by the current script system.
The LongSecondsToDate function is also available as the LongSecs2Date function. The LongSecs2Date function was previously available with the Script Manager.
To learn more about the long date-time value, see LongDateTime. For more information on the long date-time record, see TogglePB.
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)