Language

ChronoField.HourOfDay Property

Definition

The hour-of-day.

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

Property Value

Attributes

Remarks

The hour-of-day. This counts the hour within the day, from 0 to 23. This is the hour that would be observed on a standard 24-hour digital 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 in strict and smart mode but not in lenient mode. The field is combined with MINUTE_OF_HOUR, SECOND_OF_MINUTE and NANO_OF_SECOND to produce a LocalTime. In lenient mode, any excess days are added to the parsed date, or made available via DateTimeFormatter.parsedExcessDays(). See CLOCK_HOUR_OF_DAY for the related field that counts hours from 1 to 24.

Java reference for java.time.temporal.ChronoField.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