twentyfour-to-twelve

1.0.1 • Public • Published

twentyfour-to-twelve Build Status

Convert 24-hour time strings into 12-hour time strings. 14:0002:00 PM

Install

$ npm install --save twentyfour-to-twelve

Usage

var twelve = require('twentyfour-to-twelve');
 
twelve("23:01");
// => "11:01 PM"
 
twelve("14:04:00");
// => "02:04:00 PM"

Related

License

MIT @ Michael Wuergler

Package Sidebar

Install

npm i twentyfour-to-twelve

Weekly Downloads

94

Version

1.0.1

License

MIT

Last publish

Collaborators

  • radiovisual