Rxova
Skip to content

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.

ParameterType
locale?string

[string, string]