CFAbsoluteTimeGetDifferenceAsGregorianUnits

Header: CFDate.h Carbon status: Supported

Computes the time difference between the two specified absolute times and returns the result as an interval in Gregorian units.

CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits (
    CFAbsoluteTime at1, 
    CFAbsoluteTime at2, 
    CFTimeZoneRef tz, 
    CFOptionFlags unitFlags
);
Parameter descriptions
at1

The first absolute time.

at2

The second absolute time.

tz

The CFTimeZone object to use for time correction. Pass NULL for GMT.

unitFlags

Flags indicating which Gregorian unit fields to use when converting the absolute time difference into a Gregorian interval. See Gregorian Unit Flags for a list of legal values.

function result

The difference between the specified absolute times.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.1 and later when CarbonLib 1.1CarbonLib 1.1 or later is present.


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