npm

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

scientific-diff

1.0.0 • Public • Published

scientific-diff

This module shows the number of days between scientific experiments.

Usage

CLI

$ npm i scientific-diff -g
$ scientific-diff 04/07/1984 25/12/1984

Programmatically

$ npm i scientific-diff
import scientificDiff from 'scientific-diff';
const result = scientificDiff('04/07/1984', '25/12/1984');
if (result !== undefined) console.log(result);

Known limitations

  • Dates between 01/01/1900 and 31/12/2999 are supported only.
  • Only the Gregorian is supported. Doesn't work for Julian and other calendars. E.g. in early 19xx years the Julian was still used in Bulgaria, Ottoman Empire, Russia, Greece etc. More info on Wikipedia.
  • Doesn't work properly for dates recorded in Samoa for ranges which include 30 December 2011.
  • Also this software assumes that Gregorian would still be the calendar of choice for both dates.
  • Could be something else. ¯\_(ツ)_/¯

Keywords

none

install

npm i scientific-diff

Downloadsweekly downloads

2

version

1.0.0

license

ISC

repository

Gitbitbucket

last publish

collaborators

  • avatar
Report a vulnerability