GregorianCalendar Constructors
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
GregorianCalendar() |
Constructs a default GregorianCalendar using the current time
in the default time zone with the default |
GregorianCalendar(TimeZone) |
Constructs a GregorianCalendar based on the current time
in the given time zone with the default |
GregorianCalendar(ULocale) |
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the default time zone with the given locale. |
GregorianCalendar(Locale) |
Constructs a GregorianCalendar based on the current time in the default time zone with the given locale. |
GregorianCalendar(TimeZone, ULocale) |
Constructs a GregorianCalendar based on the current time in the given time zone with the given locale. |
GregorianCalendar(TimeZone, Locale) |
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the given time zone with the given locale. |
GregorianCalendar(IntPtr, JniHandleOwnership) | |
GregorianCalendar(Int32, Int32, Int32) |
Constructs a GregorianCalendar with the given date set
in the default time zone with the default |
GregorianCalendar(Int32, Int32, Int32, Int32, Int32) |
Constructs a GregorianCalendar with the given date
and time set for the default time zone with the default |
GregorianCalendar(Int32, Int32, Int32, Int32, Int32, Int32) |
Constructs a GregorianCalendar with the given date
and time set for the default time zone with the default |
GregorianCalendar()
Constructs a default GregorianCalendar using the current time
in the default time zone with the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public GregorianCalendar ();
- Attributes
Remarks
Constructs a default GregorianCalendar using the current time in the default time zone with the default FORMAT
locale.
Java documentation for android.icu.util.GregorianCalendar.GregorianCalendar()
.
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
GregorianCalendar(TimeZone)
Constructs a GregorianCalendar based on the current time
in the given time zone with the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/TimeZone;)V", "", ApiSince=24)]
public GregorianCalendar (Android.Icu.Util.TimeZone? zone);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/TimeZone;)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : Android.Icu.Util.TimeZone -> Android.Icu.Util.GregorianCalendar
Parameters
- zone
- TimeZone
the given time zone.
- Attributes
Remarks
Constructs a GregorianCalendar based on the current time in the given time zone with the default FORMAT
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
GregorianCalendar(ULocale)
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public GregorianCalendar (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : Android.Icu.Util.ULocale -> Android.Icu.Util.GregorianCalendar
Parameters
- locale
- ULocale
the given ulocale.
- Attributes
Remarks
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the default time zone with the given 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
GregorianCalendar(Locale)
Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.
[Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "", ApiSince=24)]
public GregorianCalendar (Java.Util.Locale? aLocale);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : Java.Util.Locale -> Android.Icu.Util.GregorianCalendar
Parameters
- aLocale
- Locale
the given locale.
- Attributes
Remarks
Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.
Java documentation for android.icu.util.GregorianCalendar.GregorianCalendar(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
GregorianCalendar(TimeZone, ULocale)
Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/TimeZone;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public GregorianCalendar (Android.Icu.Util.TimeZone? zone, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/TimeZone;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : Android.Icu.Util.TimeZone * Android.Icu.Util.ULocale -> Android.Icu.Util.GregorianCalendar
Parameters
- zone
- TimeZone
the given time zone.
- locale
- ULocale
the given ulocale.
- Attributes
Remarks
Constructs a GregorianCalendar based on the current time in the given time zone with the given 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
GregorianCalendar(TimeZone, Locale)
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/TimeZone;Ljava/util/Locale;)V", "", ApiSince=24)]
public GregorianCalendar (Android.Icu.Util.TimeZone? zone, Java.Util.Locale? aLocale);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/TimeZone;Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : Android.Icu.Util.TimeZone * Java.Util.Locale -> Android.Icu.Util.GregorianCalendar
Parameters
- zone
- TimeZone
the given time zone.
- aLocale
- Locale
the given locale.
- Attributes
Remarks
<strong>[icu]</strong> Constructs a GregorianCalendar based on the current time in the given time zone with the given 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
GregorianCalendar(IntPtr, JniHandleOwnership)
protected GregorianCalendar (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Util.GregorianCalendar : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Util.GregorianCalendar
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Remarks
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
GregorianCalendar(Int32, Int32, Int32)
Constructs a GregorianCalendar with the given date set
in the default time zone with the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "(III)V", "", ApiSince=24)]
public GregorianCalendar (int year, int month, int date);
[<Android.Runtime.Register(".ctor", "(III)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : int * int * int -> Android.Icu.Util.GregorianCalendar
Parameters
- year
- Int32
the value used to set the YEAR time field in the calendar.
- month
- Int32
the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January.
- date
- Int32
the value used to set the DATE time field in the calendar.
- Attributes
Remarks
Constructs a GregorianCalendar with the given date set in the default time zone with the default FORMAT
locale.
Java documentation for android.icu.util.GregorianCalendar.GregorianCalendar(int, int, int)
.
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
GregorianCalendar(Int32, Int32, Int32, Int32, Int32)
Constructs a GregorianCalendar with the given date
and time set for the default time zone with the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "(IIIII)V", "", ApiSince=24)]
public GregorianCalendar (int year, int month, int date, int hour, int minute);
[<Android.Runtime.Register(".ctor", "(IIIII)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : int * int * int * int * int -> Android.Icu.Util.GregorianCalendar
Parameters
- year
- Int32
the value used to set the YEAR time field in the calendar.
- month
- Int32
the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January.
- date
- Int32
the value used to set the DATE time field in the calendar.
- hour
- Int32
the value used to set the HOUR_OF_DAY time field in the calendar.
- minute
- Int32
the value used to set the MINUTE time field in the calendar.
- Attributes
Remarks
Constructs a GregorianCalendar with the given date and time set for the default time zone with the default FORMAT
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
GregorianCalendar(Int32, Int32, Int32, Int32, Int32, Int32)
Constructs a GregorianCalendar with the given date
and time set for the default time zone with the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "(IIIIII)V", "", ApiSince=24)]
public GregorianCalendar (int year, int month, int date, int hour, int minute, int second);
[<Android.Runtime.Register(".ctor", "(IIIIII)V", "", ApiSince=24)>]
new Android.Icu.Util.GregorianCalendar : int * int * int * int * int * int -> Android.Icu.Util.GregorianCalendar
Parameters
- year
- Int32
the value used to set the YEAR time field in the calendar.
- month
- Int32
the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January.
- date
- Int32
the value used to set the DATE time field in the calendar.
- hour
- Int32
the value used to set the HOUR_OF_DAY time field in the calendar.
- minute
- Int32
the value used to set the MINUTE time field in the calendar.
- second
- Int32
the value used to set the SECOND time field in the calendar.
- Attributes
Remarks
Constructs a GregorianCalendar with the given date and time set for the default time zone with the default FORMAT
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.