Skip to content
dickie-dates implies controlling knowingly imprecise epochs
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json
version.js

README.md

Dickie dates

dickie-dates implies controlling knowingly imprecise epochs

Version 0.1.0

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:

You can’t perform that action at this time.