Carbon


LongDateToSeconds

Header: DateTimeUtils.h Carbon status: Supported

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

void LongDateToSeconds (
    const LongDateRec *lDate, 
    LongDateTime *lSecs
);
Parameter descriptions
lDate

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

lSecs

On return, the number of seconds elapsed since midnight, January 1, 1904, and the time specified in the lDate parameter. The number of seconds are returned as a long date-time value.

DISCUSSION

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

The LongDateToSeconds function is also available as the LongDate2Secs function. The LongDate2Secs 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 LongDateRec.

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)