Calendar.ComputeGregorianFields(Int32) Method

Definition

Compute the Gregorian calendar year, month, and day of month from the Julian day.

[Android.Runtime.Register("computeGregorianFields", "(I)V", "", ApiSince=24)]
protected void ComputeGregorianFields (int julianDay);
[<Android.Runtime.Register("computeGregorianFields", "(I)V", "", ApiSince=24)>]
member this.ComputeGregorianFields : int -> unit

Parameters

julianDay
Int32
Attributes

Remarks

Compute the Gregorian calendar year, month, and day of month from the Julian day. These values are not stored in fields, but in member variables gregorianXxx. They are used for time zone computations and by subclasses that are Gregorian derivatives. Subclasses may call this method to perform a Gregorian calendar millis-&gt;fields computation. To perform a Gregorian calendar fields-&gt;millis computation, call computeGregorianMonthStart().

Java documentation for android.icu.util.Calendar.computeGregorianFields(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