1.0.2 • Published 6 years ago

@skinnyjames/cronos v1.0.2

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

cronos

library for working with big dates

usage

npm install @skinnyjames/cronos
const cronos = require('cronos')

let date = cronos(-31536000, new Date(2000, 0, 1,0,0,0))

console.log(date.friendly()) 

// -1 years From 1/1/2000

console.log(date.fromNow().years)

// -19
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago