npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

dickie-dates

0.1.0 • Public • Published

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:

install

npm i dickie-dates

Downloadsweekly downloads

3

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability