Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
next gen - no if no ternary operator solution in Clear category for Time Converter (24h to 12h) by vincent.tscherter
var timeConverter = (t, h, m) => (
[h, m] = t.split(':'),
`${+h%12||12}:${m} ${'ap'[~~(h/12)]}.m.`
)
May 27, 2020
Comments: