Share via


JulianFields.RataDie Property

Definition

Rata Die field.

[Android.Runtime.Register("RATA_DIE", ApiSince=26)]
public static Java.Time.Temporal.ITemporalField? RataDie { get; }
[<Android.Runtime.Register("RATA_DIE", ApiSince=26)>]
static member RataDie : Java.Time.Temporal.ITemporalField

Property Value

Attributes

Remarks

Rata Die field.

Rata Die counts whole days continuously starting day 1 at midnight at the beginning of 0001-01-01 (ISO). The field always refers to the local date-time, ignoring the offset or zone.

For date-times, 'RATA_DIE.getFrom()' assumes the same value from midnight until just before the next midnight. When 'RATA_DIE.adjustInto()' is applied to a date-time, the time of day portion remains unaltered. 'RATA_DIE.adjustInto()' and 'RATA_DIE.getFrom()' only apply to Temporal objects that can be converted into ChronoField#EPOCH_DAY. An UnsupportedTemporalTypeException is thrown for any other type of object.

In the resolving phase of parsing, a date can be created from a Rata Die field. In ResolverStyle#STRICT strict mode and ResolverStyle#SMART smart mode the Rata Die value is validated against the range of valid values. In ResolverStyle#LENIENT lenient mode no validation occurs.

Java documentation for java.time.temporal.JulianFields.RATA_DIE.

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