Calendar.HandleComputeFields(Int32) Method
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.
Subclasses may override this method to compute several fields specific to each calendar system.
[Android.Runtime.Register("handleComputeFields", "(I)V", "GetHandleComputeFields_IHandler", ApiSince=24)]
protected virtual void HandleComputeFields (int julianDay);
[<Android.Runtime.Register("handleComputeFields", "(I)V", "GetHandleComputeFields_IHandler", ApiSince=24)>]
abstract member HandleComputeFields : int -> unit
override this.HandleComputeFields : int -> unit
Parameters
- julianDay
- Int32
- Attributes
Remarks
Subclasses may override this method to compute several fields specific to each calendar system. These are:
<ul><li>ERA <li>YEAR <li>MONTH <li>DAY_OF_MONTH <li>DAY_OF_YEAR <li>EXTENDED_YEAR</ul>
Subclasses can refer to the DAY_OF_WEEK and DOW_LOCAL fields, which will be set when this method is called. Subclasses can also call the getGregorianXxx() methods to obtain Gregorian calendar equivalents for the given Julian day.
In addition, subclasses should compute any subclass-specific fields, that is, fields from BASE_FIELD_COUNT to getFieldCount() - 1.
The default implementation in Calendar
implements a pure proleptic Gregorian calendar.
Java documentation for android.icu.util.Calendar.handleComputeFields(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.