다음을 통해 공유


GregorianCalendar.GregorianChange Property

Definition

Gets the Gregorian Calendar change date. -or- Sets the GregorianCalendar change date.

public Java.Util.Date? GregorianChange { [Android.Runtime.Register("getGregorianChange", "()Ljava/util/Date;", "")] get; [Android.Runtime.Register("setGregorianChange", "(Ljava/util/Date;)V", "GetSetGregorianChange_Ljava_util_Date_Handler")] set; }
[<get: Android.Runtime.Register("getGregorianChange", "()Ljava/util/Date;", "")>]
[<set: Android.Runtime.Register("setGregorianChange", "(Ljava/util/Date;)V", "GetSetGregorianChange_Ljava_util_Date_Handler")>]
member this.GregorianChange : Java.Util.Date with get, set

Property Value

the Gregorian cutover date for this GregorianCalendar object.

Attributes

Remarks

Property getter documentation:

Gets the Gregorian Calendar change date. This is the point when the switch from Julian dates to Gregorian dates occurred. Default is October 15, 1582 (Gregorian). Previous to this, dates will be in the Julian calendar.

Java documentation for java.util.GregorianCalendar.getGregorianChange().

Property setter documentation:

Sets the GregorianCalendar change date. This is the point when the switch from Julian dates to Gregorian dates occurred. Default is October 15, 1582 (Gregorian). Previous to this, dates will be in the Julian calendar.

To obtain a pure Julian calendar, set the change date to Date(Long.MAX_VALUE). To obtain a pure Gregorian calendar, set the change date to Date(Long.MIN_VALUE).

Java documentation for java.util.GregorianCalendar.setGregorianChange(java.util.Date).

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