to12hours

0.1.0 • Public • Published

to12Hours Build Status

Convert 24 hour format to 12 hours.

Install

$ npm install to12hours

Usage

const to12Hours = require('to12hours');

to12Hours('15:35');
//=> '3:35PM'

API

to12Hours(input, options?)

input

Type: string

The time in the 24-hour format.

Readme

Keywords

Package Sidebar

Install

npm i to12hours

Weekly Downloads

4

Version

0.1.0

License

MIT

Unpacked Size

2.38 kB

Total Files

4

Last publish

Collaborators

  • imedadel