ChronoField.ClockHourOfAmpm 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 clock-hour-of-am-pm.
[Android.Runtime.Register("CLOCK_HOUR_OF_AMPM", ApiSince=26)]
public static Java.Time.Temporal.ChronoField? ClockHourOfAmpm { get; }
[<Android.Runtime.Register("CLOCK_HOUR_OF_AMPM", ApiSince=26)>]
static member ClockHourOfAmpm : Java.Time.Temporal.ChronoField
Property Value
- Attributes
Remarks
The clock-hour-of-am-pm. This counts the hour within the AM/PM, from 1 to 12. This is the hour that would be observed on a standard 12-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 12 in strict mode and from 0 to 12 in smart mode. In lenient mode the value is not validated. The field is converted to an HOUR_OF_AMPM with the same value, unless the value is 12, in which case it is converted to 0. See HOUR_OF_AMPM for the related field that counts hours from 0 to 11.
Java reference for java.time.temporal.ChronoField.CLOCK_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.