dickie-dates
v0.1.0
Published
dickie-dates implies controlling knowingly imprecise epochs
Downloads
2
Readme
Dickie dates
dickie-dates implies controlling knowingly imprecise epochs
An implementation of a simple set of conventions for handling intentionally ambiguous date-time stamps.
Installation
npm install dickie-dates
Usage
The 1980s can be represented by the string "198".
var dickiedates = require("dickie-dates")
console.log(dickiedates.parseDate("198"))
This will return:
{ startDate: '19800101000000',
endDate: '19891231235959',
precision: 2 }
The precision index allows for continued recognition of the originally ambiguous input.
Documentation
There's not a lot of detailed documentation at the moment, but for what it's worth you can follow the thinking that went into this package in the following blog posts: