Mac Guides | Samples

MonoMac.Foundation.NSDate Class

Date operations.

See Also: NSDate

Syntax

[MonoMac.Foundation.Register("NSDate", true)]
public class NSDate : NSObject

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.Foundation.NSDate are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes when the derived class has an [Export] constructor.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
static
DistantFutureNSDate.
[read-only]
static
DistantPastNSDate.
[read-only]
static
NowNSDate. Gets the current date and time.
[read-only]
SecondsSinceReferenceDateDouble.

Public Methods

AddSeconds(Double) : NSDate
static
FromTimeIntervalSince1970(Double) : NSDate
static
FromTimeIntervalSinceNow(Double) : NSDate
static
FromTimeIntervalSinceReferenceDate(Double) : NSDate
override
ToString() : String
Returns a string representation of the value of the current instance.

Public Operators

static
Conversion to System.DateTime(Implicit)Converts an NSDate value to an equivalent DateTime value.
static
Conversion to MonoMac.Foundation.NSDate(Implicit)Converts a DateTime value to an equivalent NSDate value.