Language

ChronoField.HourOfAmpm Property

Definition

The hour-of-am-pm.

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

Property Value

Attributes

Remarks

The hour-of-am-pm. This counts the hour within the AM/PM, from 0 to 11. This is the hour that would be observed on a standard 12-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 from 0 to 11 in strict and smart mode. In lenient mode the value is not validated. It is combined with AMPM_OF_DAY to form HOUR_OF_DAY by multiplying the AMPM_OF_DAY value by 12. See CLOCK_HOUR_OF_AMPM for the related field that counts hours from 1 to 12.

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

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