ChronoField.AmpmOfDay 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 am-pm-of-day.
[Android.Runtime.Register("AMPM_OF_DAY", ApiSince=26)]
public static Java.Time.Temporal.ChronoField? AmpmOfDay { get; }
[<Android.Runtime.Register("AMPM_OF_DAY", ApiSince=26)>]
static member AmpmOfDay : Java.Time.Temporal.ChronoField
Property Value
The field that identifies the half of the day: 0 for AM or 1 for PM.
- Attributes
Remarks
The am-pm-of-day. This counts the AM/PM within the day, from 0 (AM) to 1 (PM). 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 1 in strict and smart mode. In lenient mode the value is not validated. When HOUR_OF_AMPM is present, HOUR_OF_DAY is calculated as AMPM_OF_DAY multiplied by 12 plus HOUR_OF_AMPM. When this is the only time information, the Android 8.0 through 13 implementations leave the time unresolved. The Android 14 through 17 implementations resolve AM to 06:00 and PM to 18:00 in smart and lenient mode, but not in strict mode. Runtime updates can change this behavior.
Java reference for java.time.temporal.ChronoField.AMPM_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.