GregorianCalendar GregorianCalendar Constructors

Definition

Overloads

GregorianCalendar()

Constructs a new GregorianCalendar initialized to the current date and time with the default Locale and TimeZone.

GregorianCalendar(Locale) GregorianCalendar(Locale)

Constructs a new GregorianCalendar initialized to the current date and time and using the specified Locale and the default TimeZone.

GregorianCalendar(TimeZone) GregorianCalendar(TimeZone)

Constructs a new GregorianCalendar initialized to the current date and time and using the specified TimeZone and the default Locale.

GregorianCalendar(TimeZone, Locale) GregorianCalendar(TimeZone, Locale)

Constructs a new GregorianCalendar initialized to the current date and time and using the specified TimeZone and Locale.

GregorianCalendar(IntPtr, JniHandleOwnership) GregorianCalendar(IntPtr, JniHandleOwnership)

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

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

Constructs a new GregorianCalendar initialized to midnight in the default TimeZone and Locale on the specified date.

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

Constructs a new GregorianCalendar initialized to the specified date and time in the default TimeZone and Locale.

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

Constructs a new GregorianCalendar initialized to the specified date and time in the default TimeZone and Locale.

GregorianCalendar()

Constructs a new GregorianCalendar initialized to the current date and time with the default Locale and TimeZone.

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

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.

GregorianCalendar(Locale) GregorianCalendar(Locale)

Constructs a new GregorianCalendar initialized to the current date and time and using the specified Locale and the default TimeZone.

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

Parameters

aLocale
Locale Locale

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.

GregorianCalendar(TimeZone) GregorianCalendar(TimeZone)

Constructs a new GregorianCalendar initialized to the current date and time and using the specified TimeZone and the default Locale.

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

Parameters

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.

GregorianCalendar(TimeZone, Locale) GregorianCalendar(TimeZone, Locale)

Constructs a new GregorianCalendar initialized to the current date and time and using the specified TimeZone and Locale.

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

Parameters

aLocale
Locale Locale

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.

GregorianCalendar(IntPtr, JniHandleOwnership) 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 IntPtr

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

transfer
JniHandleOwnership 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.

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

Constructs a new GregorianCalendar initialized to midnight in the default TimeZone and Locale on the specified date.

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

Parameters

year
Int32 Int32
month
Int32 Int32
dayOfMonth
Int32 Int32

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.

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

Constructs a new GregorianCalendar initialized to the specified date and time in the default TimeZone and Locale.

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

Parameters

year
Int32 Int32
month
Int32 Int32
dayOfMonth
Int32 Int32
hourOfDay
Int32 Int32
minute
Int32 Int32

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.

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

Constructs a new GregorianCalendar initialized to the specified date and time in the default TimeZone and Locale.

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

Parameters

year
Int32 Int32
month
Int32 Int32
dayOfMonth
Int32 Int32
hourOfDay
Int32 Int32
minute
Int32 Int32
second
Int32 Int32

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