NSCalendar.Components Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Components(NSCalendarUnit, NSDate) | |
Components(NSCalendarUnit, NSDate, NSDate, NSCalendarOptions) | |
Components(NSCalendarUnit, NSDate, NSDate, NSDateComponentsWrappingBehavior) |
Obsolete.
|
Components(NSCalendarUnit, NSDate)
[Foundation.Export("components:fromDate:")]
public virtual Foundation.NSDateComponents Components (Foundation.NSCalendarUnit unitFlags, Foundation.NSDate fromDate);
abstract member Components : Foundation.NSCalendarUnit * Foundation.NSDate -> Foundation.NSDateComponents
override this.Components : Foundation.NSCalendarUnit * Foundation.NSDate -> Foundation.NSDateComponents
Parameters
- unitFlags
- NSCalendarUnit
- fromDate
- NSDate
Returns
- Attributes
Applies to
Components(NSCalendarUnit, NSDate, NSDate, NSCalendarOptions)
[Foundation.Export("components:fromDate:toDate:options:")]
public virtual Foundation.NSDateComponents Components (Foundation.NSCalendarUnit unitFlags, Foundation.NSDate fromDate, Foundation.NSDate toDate, Foundation.NSCalendarOptions opts);
abstract member Components : Foundation.NSCalendarUnit * Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarOptions -> Foundation.NSDateComponents
override this.Components : Foundation.NSCalendarUnit * Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarOptions -> Foundation.NSDateComponents
Parameters
- unitFlags
- NSCalendarUnit
- fromDate
- NSDate
- toDate
- NSDate
- opts
- NSCalendarOptions
Returns
- Attributes
Applies to
Components(NSCalendarUnit, NSDate, NSDate, NSDateComponentsWrappingBehavior)
Caution
Use the overload with a 'NSCalendarOptions' parameter.
[System.Obsolete("Use the overload with a 'NSCalendarOptions' parameter.", false)]
public Foundation.NSDateComponents Components (Foundation.NSCalendarUnit unitFlags, Foundation.NSDate fromDate, Foundation.NSDate toDate, Foundation.NSDateComponentsWrappingBehavior opts);
member this.Components : Foundation.NSCalendarUnit * Foundation.NSDate * Foundation.NSDate * Foundation.NSDateComponentsWrappingBehavior -> Foundation.NSDateComponents
Parameters
- unitFlags
- NSCalendarUnit
- fromDate
- NSDate
- toDate
- NSDate
Returns
- Attributes