Carbon


DateToSeconds

Header: DateTimeUtils.h Carbon status: Supported

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

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

The date-time structure containing the date and time to convert.

secs

On return, the number of seconds elapsed between midnight, January 1, 1904, and the time specified in the d parameter. For example, specifying a date and time of 5:50 A.M. on June 13, 1990 results in 41627 being returned in this parameter.

DISCUSSION

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

The DateToSeconds function is also available as the Date2Secs 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)