Carbon


SecondsToDate

Header: DateTimeUtils.h Carbon status: Supported

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

void SecondsToDate (
    UInt32 secs, 
    DateTimeRec *d
);
Parameter descriptions
secs

The number of seconds elapsed since midnight, January 1, 1904.

d

On return, the fields of the date-time structure that contain the date and time corresponding to the value indicated in the s parameter.

DISCUSSION

The system software uses the SecondsToDate function provided by the current script system.

The SecondsToDate function is also available as the Secs2Date function.

For a complete description of the date-time record, see DateTimeRec.

AVAILABILITY

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)