approximate
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "approximate", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A library to parse \"approximate\" dates", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,4 @@ # approximate | ||
var parsedDate = approx('JAN 15'); | ||
console.log(parsedDate); // yields ISO timestamp equivalent to January 15, 2015 00:00:00Zsomething something | ||
console.log(parsedDate); | ||
// yields timestamp equivalent to January 15, 2015 00:00:00Z | ||
``` | ||
@@ -17,4 +18,6 @@ | ||
var parsedDate = approx('JAN 15 - THE WILD ATARIS, LARGE TYPHOON, THE IGNORANT GOATS'); | ||
console.log(parsedDate); // yields ISO timestamp equivalent to January 15, 2015 00:00:00Zsomething something | ||
console.log(parsedDate); | ||
// yields timestamp equivalent to January 15, 2015 00:00:00Z | ||
``` | ||
...and: | ||
@@ -25,3 +28,4 @@ | ||
var parsedDate = approx('4/15 - April and the Showers, Flowers for April'); | ||
console.log(parsedDate); // yields ISO timestamp equivalent to January 15, 2015 00:00:00Zsomething something | ||
console.log(parsedDate); | ||
// yields timestamp equivalent to April 15, 2015 00:00:00Z | ||
``` |
29
6081