Returns a new NSDate object representing the absolute time calculated by adding given components to a given date.
Original signature is '- (NSDate *)dateByAddingComponents:(NSDateComponents *)comps toDate:(NSDate *)date options:(NSUInteger)opts'
Available in Mac OS X v10.4 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSDate DateByAddingComponentsToDateOptions( NSDateComponents comps, NSDate date, NSUInteger opts )
Public Overridable Function DateByAddingComponentsToDateOptions ( _ comps As NSDateComponents, _ date As NSDate, _ opts As NSUInteger _ ) As NSDate
public: virtual NSDate^ DateByAddingComponentsToDateOptions( NSDateComponents^ comps, NSDate^ date, NSUInteger opts )
Parameters
- comps (NSDateComponents)
- The components to add to date.
- date (NSDate)
- The date to which comps are added.
- opts (NSUInteger)
- Options for the calculation. See “NSDateComponents wrapping behavior” for possible values. Pass 0 to specify no options.
Return Value
A new NSDate object representing the absolute time calculated by adding to date the calendrical components specified by comps using the options specified by opts. Returns nil if date falls outside the defined range of the receiver or if the computation cannot be performed.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)