time-input-formatter
v1.0.0
Published
Interpret and format a user inputted time string or partial time string to 12hr or 24hr time
Downloads
179
Maintainers
Readme
time-input-formatter
This library contains es5 and es6 implementations in the deliverable and is fully tree-shakable for es6.
export type Format = '12hm' | '12hms' | '24hm' | '24hms';
export type ParsedTime = { valid: boolean, value: string };
import { deriveTimeFormat, Format, ParsedTime } from 'time-input-formatter';
MIT