Aracılığıyla paylaş


GregorianCalendar Constructors

Definition

Overloads

GregorianCalendar()

Constructs a default GregorianCalendar using the current time in the default time zone with the default Locale.Category#FORMAT FORMAT locale.

GregorianCalendar(Locale)

Constructs a GregorianCalendar based on the current time in the default time zone with the given locale.

GregorianCalendar(TimeZone)

Constructs a GregorianCalendar based on the current time in the given time zone with the default Locale.Category#FORMAT FORMAT locale.

GregorianCalendar(TimeZone, Locale)

Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.

GregorianCalendar(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

GregorianCalendar(Int32, Int32, Int32)

Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.

GregorianCalendar(Int32, Int32, Int32, Int32, Int32)

Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.

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 locale.

GregorianCalendar()

Constructs a default GregorianCalendar using the current time in the default time zone with the default Locale.Category#FORMAT FORMAT locale.

[Android.Runtime.Register(".ctor", "()V", "")]
public GregorianCalendar ();
Attributes

Remarks

Constructs a default GregorianCalendar using the current time in the default time zone with the default Locale.Category#FORMAT FORMAT locale.

Java documentation for java.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(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", "")]
public GregorianCalendar (Java.Util.Locale? aLocale);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "")>]
new Java.Util.GregorianCalendar : Java.Util.Locale -> Java.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 java.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)

Constructs a GregorianCalendar based on the current time in the given time zone with the default Locale.Category#FORMAT FORMAT locale.

[Android.Runtime.Register(".ctor", "(Ljava/util/TimeZone;)V", "")]
public GregorianCalendar (Java.Util.TimeZone? zone);
[<Android.Runtime.Register(".ctor", "(Ljava/util/TimeZone;)V", "")>]
new Java.Util.GregorianCalendar : Java.Util.TimeZone -> Java.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 Locale.Category#FORMAT FORMAT locale.

Java documentation for java.util.GregorianCalendar.GregorianCalendar(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

GregorianCalendar(TimeZone, Locale)

Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.

[Android.Runtime.Register(".ctor", "(Ljava/util/TimeZone;Ljava/util/Locale;)V", "")]
public GregorianCalendar (Java.Util.TimeZone? zone, Java.Util.Locale? aLocale);
[<Android.Runtime.Register(".ctor", "(Ljava/util/TimeZone;Ljava/util/Locale;)V", "")>]
new Java.Util.GregorianCalendar : Java.Util.TimeZone * Java.Util.Locale -> Java.Util.GregorianCalendar

Parameters

zone
TimeZone

the given time zone.

aLocale
Locale

the given locale.

Attributes

Remarks

Constructs a GregorianCalendar based on the current time in the given time zone with the given locale.

Java documentation for java.util.GregorianCalendar.GregorianCalendar(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

GregorianCalendar(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected GregorianCalendar (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.GregorianCalendar : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.GregorianCalendar

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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 locale.

[Android.Runtime.Register(".ctor", "(III)V", "")]
public GregorianCalendar (int year, int month, int dayOfMonth);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
new Java.Util.GregorianCalendar : int * int * int -> Java.Util.GregorianCalendar

Parameters

year
Int32

the value used to set the YEAR calendar field in the calendar.

month
Int32

the value used to set the MONTH calendar field in the calendar. Month value is 0-based. e.g., 0 for January.

dayOfMonth
Int32

the value used to set the DAY_OF_MONTH calendar field in the calendar.

Attributes

Remarks

Constructs a GregorianCalendar with the given date set in the default time zone with the default locale.

Java documentation for java.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 locale.

[Android.Runtime.Register(".ctor", "(IIIII)V", "")]
public GregorianCalendar (int year, int month, int dayOfMonth, int hourOfDay, int minute);
[<Android.Runtime.Register(".ctor", "(IIIII)V", "")>]
new Java.Util.GregorianCalendar : int * int * int * int * int -> Java.Util.GregorianCalendar

Parameters

year
Int32

the value used to set the YEAR calendar field in the calendar.

month
Int32

the value used to set the MONTH calendar field in the calendar. Month value is 0-based. e.g., 0 for January.

dayOfMonth
Int32

the value used to set the DAY_OF_MONTH calendar field in the calendar.

hourOfDay
Int32

the value used to set the HOUR_OF_DAY calendar field in the calendar.

minute
Int32

the value used to set the MINUTE calendar field in the calendar.

Attributes

Remarks

Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.

Java documentation for java.util.GregorianCalendar.GregorianCalendar(int, int, 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, Int32)

Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.

[Android.Runtime.Register(".ctor", "(IIIIII)V", "")]
public GregorianCalendar (int year, int month, int dayOfMonth, int hourOfDay, int minute, int second);
[<Android.Runtime.Register(".ctor", "(IIIIII)V", "")>]
new Java.Util.GregorianCalendar : int * int * int * int * int * int -> Java.Util.GregorianCalendar

Parameters

year
Int32

the value used to set the YEAR calendar field in the calendar.

month
Int32

the value used to set the MONTH calendar field in the calendar. Month value is 0-based. e.g., 0 for January.

dayOfMonth
Int32

the value used to set the DAY_OF_MONTH calendar field in the calendar.

hourOfDay
Int32

the value used to set the HOUR_OF_DAY calendar field in the calendar.

minute
Int32

the value used to set the MINUTE calendar field in the calendar.

second
Int32

the value used to set the SECOND calendar field in the calendar.

Attributes

Remarks

Constructs a GregorianCalendar with the given date and time set for the default time zone with the default locale.

Java documentation for java.util.GregorianCalendar.GregorianCalendar(int, int, int, 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