0.1.3 • Published 4 years ago

timelg v0.1.3

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

timelg

NPM

Time naturel language

Install

npm install --save timelg

Usage

require('timelg');

console.log('today'.beginning); //2019-12-03T23:00:00.000Z
console.log('today'.ending); //2019-12-04T22:59:59.999Z
console.log('1 day'.after('today'.beginning)); //2019-12-04T23:00:00.000Z
console.log('2 hours'.before('today'.ending)); //2019-12-04T20:59:59.999Z
console.log('today'.ending.is.over('12 hours'.after('today'.beginning))); //true