Language

ChronoField.ClockHourOfDay Property

Definition

The clock-hour-of-day.

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

Property Value

Attributes

Remarks

The clock-hour-of-day. This counts the hour within the day, from 1 to 24. This is the hour that would be observed on a 24-hour analog wall clock. This field has the same meaning for all calendar systems. When parsing this field it behaves equivalent to the following: The value is validated from 1 to 24 in strict mode and from 0 to 24 in smart mode. In lenient mode the value is not validated. The field is converted to an HOUR_OF_DAY with the same value, unless the value is 24, in which case it is converted to 0. See HOUR_OF_DAY for the related field that counts hours from 0 to 23.

Java reference for java.time.temporal.ChronoField.CLOCK_HOUR_OF_DAY.

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