Till-when
Till-when takes a time range string (like "9-2P") and converts it into formatted begin and end components.
Usage
Install via npm:
npm install till-when --save
var tillwhen = var parsed = tillwhen;console; //'9:00 AM'console; //'11:11 AM' parsed = tillwhen;console; //'8:00 AM'console; //'7:00 PM' //if missing, the AM/PM of the beginning time is inferred from the endparsed = tillwhen;console; //'9:00 AM'console; //'2:00 PM'
Tests
Tests are written in mocha/chai.expect.