NSRelativeDateTimeFormatter.GetLocalizedString 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
| Name | Description |
|---|---|
| GetLocalizedString(NSDateComponents) | |
| GetLocalizedString(Double) | |
| GetLocalizedString(NSDate, NSDate) |
GetLocalizedString(NSDateComponents)
[Foundation.Export("localizedStringFromDateComponents:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string GetLocalizedString(Foundation.NSDateComponents dateComponents);
[<Foundation.Export("localizedStringFromDateComponents:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedString : Foundation.NSDateComponents -> string
override this.GetLocalizedString : Foundation.NSDateComponents -> string
Parameters
- dateComponents
- NSDateComponents
Returns
- Attributes
Applies to
GetLocalizedString(Double)
[Foundation.Export("localizedStringFromTimeInterval:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string GetLocalizedString(double timeInterval);
[<Foundation.Export("localizedStringFromTimeInterval:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedString : double -> string
override this.GetLocalizedString : double -> string
Parameters
- timeInterval
- Double
Returns
- Attributes
Applies to
GetLocalizedString(NSDate, NSDate)
[Foundation.Export("localizedStringForDate:relativeToDate:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual string GetLocalizedString(Foundation.NSDate date, Foundation.NSDate referenceDate);
[<Foundation.Export("localizedStringForDate:relativeToDate:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetLocalizedString : Foundation.NSDate * Foundation.NSDate -> string
override this.GetLocalizedString : Foundation.NSDate * Foundation.NSDate -> string
Parameters
- date
- NSDate
- referenceDate
- NSDate
Returns
- Attributes