Calendar.GetInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetInstance(TimeZone, Locale) |
Returns a calendar with the specified time zone and locale. |
GetInstance(TimeZone, ULocale) |
Returns a calendar with the specified time zone and locale. |
GetInstance(TimeZone) |
Returns a calendar using the specified time zone and default locale. |
GetInstance(ULocale) |
Returns a calendar using the default time zone and specified locale. |
GetInstance(Locale) |
Returns a calendar using the default time zone and specified locale. |
GetInstance(TimeZone, Locale)
Returns a calendar with the specified time zone and locale.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/TimeZone;Ljava/util/Locale;)Landroid/icu/util/Calendar;", "", ApiSince=24)]
public static Android.Icu.Util.Calendar? GetInstance (Android.Icu.Util.TimeZone? zone, Java.Util.Locale? aLocale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/TimeZone;Ljava/util/Locale;)Landroid/icu/util/Calendar;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.TimeZone * Java.Util.Locale -> Android.Icu.Util.Calendar
Parameters
- zone
- TimeZone
the time zone to use
- aLocale
- Locale
the locale for the week data
Returns
a Calendar.
- Attributes
Remarks
Returns a calendar with the specified time zone and 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, ULocale)
Returns a calendar with the specified time zone and locale.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/TimeZone;Landroid/icu/util/ULocale;)Landroid/icu/util/Calendar;", "", ApiSince=24)]
public static Android.Icu.Util.Calendar? GetInstance (Android.Icu.Util.TimeZone? zone, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/TimeZone;Landroid/icu/util/ULocale;)Landroid/icu/util/Calendar;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.TimeZone * Android.Icu.Util.ULocale -> Android.Icu.Util.Calendar
Parameters
- zone
- TimeZone
the time zone to use
- locale
- ULocale
the ulocale for the week data
Returns
a Calendar.
- Attributes
Remarks
Returns a calendar with the specified time zone and 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)
Returns a calendar using the specified time zone and default locale.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/TimeZone;)Landroid/icu/util/Calendar;", "", ApiSince=24)]
public static Android.Icu.Util.Calendar? GetInstance (Android.Icu.Util.TimeZone? zone);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/TimeZone;)Landroid/icu/util/Calendar;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.TimeZone -> Android.Icu.Util.Calendar
Parameters
- zone
- TimeZone
the time zone to use
Returns
a Calendar.
- Attributes
Remarks
Returns a calendar using the specified time zone and default locale.
Java documentation for android.icu.util.Calendar.getInstance(android.icu.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(ULocale)
Returns a calendar using the default time zone and specified locale.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/util/Calendar;", "", ApiSince=24)]
public static Android.Icu.Util.Calendar? GetInstance (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/util/Calendar;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Util.Calendar
Parameters
- locale
- ULocale
the ulocale for the week data
Returns
a Calendar.
- Attributes
Remarks
Returns a calendar using the default time zone and specified locale.
Java documentation for android.icu.util.Calendar.getInstance(android.icu.util.ULocale)
.
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(Locale)
Returns a calendar using the default time zone and specified locale.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/util/Calendar;", "", ApiSince=24)]
public static Android.Icu.Util.Calendar? GetInstance (Java.Util.Locale? aLocale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/util/Calendar;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Util.Calendar
Parameters
- aLocale
- Locale
the locale for the week data
Returns
a Calendar.
- Attributes
Remarks
Returns a calendar using the default time zone and specified locale.
Java documentation for android.icu.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.