Initializer

init(calendarIdentifier:)

Initializes a calendar according to a given identifier.

Declaration

init?(calendarIdentifier ident: NSCalendar.Identifier)

Parameters

string

The identifier for the new calendar. For valid identifiers, see Calendar Identifiers.

Return Value

The initialized calendar, or nil if the identifier is unknown (if, for example, it is either an unrecognized string or the calendar is not supported by the current version of the operating system).

See Also

Creating and Initializing Calendars

init?(identifier: NSCalendar.Identifier)

Creates a new calendar specified by a given identifier.

struct NSCalendar.Identifier

The supported calendar types.