Carbon


LongDateTime

Header: DateTimeUtils.h

typedef SInt64 LongDateTime;

The long date-time value specifies the date and time as seconds relative to midnight, January 1, 1904. But where the standard date-time value is an unsigned, 32-bit long integer, the long date-time value is a signed, 64-bit integer in SANE comp format. This format lets you use dates and times with a much longer span—roughly 500 billion years. You can use this value to represent dates and times prior to midnight, January 1, 1904. The LongDateTime data type defines the long date-time value.

When storing a long date-time value in files, you can use a 5-byte or 6-byte format for a range of roughly 35,000 years. You should sign extend this value to restore it to a comp format. Use the LongDateCvt structure to help you in setting up a LongDateTime value.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)