Import
The time formatting logic supports both string (HH:mm[:ss]) and Date inputs.
import { Format } from '@cerberus/react'Usage
Basic
Use the Format.Time component to format a time value with default options.
Loading example...
Date
Use a Date object as the value.
Loading example...
Seconds
Use the withSeconds prop to include seconds in the output.
Loading example...
AM/PM Labels
Use amLabel and pmLabel to customize day-period labels when using 12-hour format.
Loading example...
Locale
Use the locale provider to format the time according to a specific locale.
Loading example...