Computes the absolute time from components in a description string.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The calendar to use for the computation.
Upon return, contains the computed absolute time.
A string that describes the components provided in the vararg parameters.
Vararg parameters giving amounts of each calendrical component in the order specified by
component. The amounts to add may be negative, zero, positive, or any combination thereof.
at the absolute time computed from the given components—if the
component description string can be converted into an absolute time, otherwise
FALSE. Also returns
FALSE for out-of-range values.
When there are insufficient components provided to completely specify an absolute time, a calendar uses default values of its choice. When there is inconsistent information, a calendar may ignore some of the parameters or the function may return
FALSE. Unnecessary components are ignored (for example, Day takes precedence over Weekday + Weekday ordinal). Note that some computations can take a relatively long time to perform.
The following example shows how to use this function to initialize an absolute time,
at, to 6 January 1965 14:10:00, for a given calendar