hhmm

v1.0.1
Convert a digit time string to milliseconds: '22:17' → 80220000

hhmm

Build Status Standard - JavaScript Style Guide

Convert a digit time string to milliseconds: '22:17'80220000

Installation

$ yarn add hhmm

Alternatively using npm:

$ npm install --save hhmm

Usage

const hhmm = require('hhmm')

// hours:minutes
hhmm('22:17')
//=> 80220000

// hours
hhmm('22')
//=> 79200000

// hours:minutes
hhmm('00:22')
//=> 1320000

License

MIT © Robin van der Vleuten

npm i hhmm

Metadata

  • MIT
  • Whatever
  • Robin van der Vleuten
  • released 2/16/2017

Downloads

Maintainers