Share via


Calendar.GetInstance Method

Definition

Overloads

GetInstance(Locale)

Gets a calendar using the default time zone and specified locale.

GetInstance(TimeZone)

Gets a calendar using the specified time zone and default locale.

GetInstance(TimeZone, Locale)

Gets a calendar with the specified time zone and locale.

GetInstance(Locale)

Gets a calendar using the default time zone and specified locale.

[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Ljava/util/Calendar;", "")]
public static Java.Util.Calendar GetInstance (Java.Util.Locale aLocale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Ljava/util/Calendar;", "")>]
static member GetInstance : Java.Util.Locale -> Java.Util.Calendar

Parameters

aLocale
Locale

the locale for the week data

Returns

a Calendar.

Attributes

Remarks

Java documentation for java.util.Calendar.getInstance(java.util.Locale).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetInstance(TimeZone)

Gets a calendar using the specified time zone and default locale.

[Android.Runtime.Register("getInstance", "(Ljava/util/TimeZone;)Ljava/util/Calendar;", "")]
public static Java.Util.Calendar GetInstance (Java.Util.TimeZone zone);
[<Android.Runtime.Register("getInstance", "(Ljava/util/TimeZone;)Ljava/util/Calendar;", "")>]
static member GetInstance : Java.Util.TimeZone -> Java.Util.Calendar

Parameters

zone
TimeZone

the time zone to use

Returns

a Calendar.

Attributes

Remarks

Java documentation for java.util.Calendar.getInstance(java.util.TimeZone).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetInstance(TimeZone, Locale)

Gets a calendar with the specified time zone and locale.

[Android.Runtime.Register("getInstance", "(Ljava/util/TimeZone;Ljava/util/Locale;)Ljava/util/Calendar;", "")]
public static Java.Util.Calendar GetInstance (Java.Util.TimeZone zone, Java.Util.Locale aLocale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/TimeZone;Ljava/util/Locale;)Ljava/util/Calendar;", "")>]
static member GetInstance : Java.Util.TimeZone * Java.Util.Locale -> Java.Util.Calendar

Parameters

zone
TimeZone

the time zone to use

aLocale
Locale

the locale for the week data

Returns

a Calendar.

Attributes

Remarks

Java documentation for java.util.Calendar.getInstance(java.util.TimeZone, java.util.Locale).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to