ChronoField.HourOfAmpm Property
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.
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
The field that counts hours from 0 to 11 within AM or PM.
- 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. The valid range is 0 to 11. In strict and smart mode, the Android 8.0 through 13 implementations can accept an out-of-range value when AMPM_OF_DAY is also present and the resulting HOUR_OF_DAY is valid. The Android 14 through 17 implementations validate both fields when they are combined. Runtime updates can change this behavior. In lenient mode the value is not validated. When both fields are present, HOUR_OF_DAY is calculated as AMPM_OF_DAY multiplied by 12 plus HOUR_OF_AMPM. 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.