dayPeriodNames
function dayPeriodNames(locale?): [string, string];The localised AM and PM strings.
Hard-coding “AM”/“PM” would be wrong in most of the world — es writes
a. m., ja writes 午前. Intl knows them all.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
locale? | string |
Returns
Section titled “Returns”[string, string]