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
Locale | Localized value |
---|---|
en-US | 10:59:00 AM |
fr-FR | 10:59:00 |
de-DE | 10:59:00 |
fi-FI | 10.59.00 |
sv-FI | 10:59:00 |
ko-KR | 오전 10:59:00 |
hi-IN | 10:59:00 am |