Calendar Constructors

Definition

Overloads

Calendar()

Creates a Calendar object and initializes it to the current DateTime.

Calendar(IIterable<String>)

Creates a Calendar object that is initialized with a language list.

Calendar(IIterable<String>, String, String)

Creates a Calendar object that is initialized with a language list, calendar, and clock.

Calendar(IIterable<String>, String, String, String)

Creates a Calendar object that is initialized with a language list, calendar, clock, and time zone.

Calendar()

Creates a Calendar object and initializes it to the current DateTime.

C#
public Calendar();

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

Calendar(IIterable<String>)

Creates a Calendar object that is initialized with a language list.

C#
public Calendar(IEnumerable<string> languages);

Parameters

languages

IEnumerable<String>

The list of language identifiers, in priority order, that represents the choice of languages. These are used for resolving patterns to strings.

Remarks

Language tags support the Unicode extensions "ca-" and "nu-". (See Unicode Key/Type Definitions.) Note that these extensions can affect the calendar used by Calendar objects.

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

Calendar(IIterable<String>, String, String)

Creates a Calendar object that is initialized with a language list, calendar, and clock.

C#
public Calendar(IEnumerable<string> languages, string calendar, string clock);

Parameters

languages

IEnumerable<String>

The list of language identifiers, in priority order, representing the choice of languages. These are used for resolving patterns to strings. See Remarks for Calendar.

calendar
String

The calendar identifier to use.

clock
String

The clock identifier to use.

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

Calendar(IIterable<String>, String, String, String)

Creates a Calendar object that is initialized with a language list, calendar, clock, and time zone.

C#
public Calendar(IEnumerable<string> languages, string calendar, string clock, string timeZoneId);

Parameters

languages

IEnumerable<String>

The list of language identifiers, in priority order, representing the choice of languages. These are used for resolving patterns to strings. See Remarks for Calendar.

calendar
String

The calendar identifier to use.

clock
String

The clock identifier to use.

timeZoneId
String

An identifier from the IANA Time Zone Database which identifies the time zone that should be used (for example, "America/Los_Angeles" for Pacific Time).

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100