Initializer

init()

Returns a date object initialized to the current date and time.

Declaration

init()

Return Value

An NSDate object initialized to the current date and time.

Discussion

This method is a designated initializer for NSDate.

See Also

Initializing a Date

init(timeIntervalSinceNow: TimeInterval)

Returns a date object initialized relative to the current date and time by a given number of seconds.

init(timeInterval: TimeInterval, since: Date)

Returns a date object initialized relative to another given date by a given number of seconds.

init(timeIntervalSinceReferenceDate: TimeInterval)

Returns a date object initialized relative to 00:00:00 UTC on 1 January 2001 by a given number of seconds.

init(timeIntervalSince1970: TimeInterval)

Returns a date object initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds.

init?(coder: NSCoder)

Returns a date object initialized from data in the given unarchiver.