Skip to content

time
@localizer/format 1.1.1

The time provides a convenient way to format time values.

Usage

typescript
import { 
time
} from '@localizer/format';
const
result
=
time
(new
Date
(2025, 2, 23, 12, 59, 0));

Formatter accepts JavaScript Date objects or numbers, which are treated as timestamps (milliseconds since January 1, 1970, 00:00:00 UTC).

Demo

LocaleLocalized value
en-US  American English10:59:00 AM
fr-FR  French (France)10:59:00
de-DE  German (Germany)10:59:00
fi-FI  Finnish (Finland)10.59.00
sv-FI  Swedish (Finland)10:59:00
ko-KR  Korean (South Korea)오전 10:59:00
hi-IN  Hindi (India)10:59:00 am

See also