@flourish/interpreter
Advanced tools
Comparing version 8.2.0 to 8.3.0
@@ -990,2 +990,4 @@ (function (global, factory) { | ||
createDatetimeInterpretation("%Y-%m-%d %H:%M:%S"), // 1972-04-27 07:45:05 | ||
createDatetimeInterpretation("%Y-%m-%dT%H:%M:%S"), // 1972-04-27T07:45:05 | ||
createDatetimeInterpretation("%Y-%m-%dT%H:%M:%SZ"), // 1972-04-27T10:10:10Z | ||
@@ -992,0 +994,0 @@ createDatetimeInterpretation("%d/%m/%Y", function(str, passed_primary_test) { // 27/04/1972 |
{ | ||
"name": "@flourish/interpreter", | ||
"version": "8.2.0", | ||
"version": "8.3.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Does a best guess at the type of data supplied", |
@@ -0,1 +1,4 @@ | ||
# 8.3.0 | ||
* Add "%Y-%m-%dT%H:%M:%SZ" and "%Y-%m-%dT%H:%M:%S" datetime formats | ||
# 8.2.0 | ||
@@ -2,0 +5,0 @@ * Add "%b %d %Y", "%b %d %Y, %-I.%M%p", "%-I.%M%p", and "%Y-%m-%d %H:%M:%S" datetime formats. |
@@ -84,2 +84,4 @@ import { utcParse, utcFormat } from "d3-time-format"; | ||
createDatetimeInterpretation("%Y-%m-%d %H:%M:%S"), // 1972-04-27 07:45:05 | ||
createDatetimeInterpretation("%Y-%m-%dT%H:%M:%S"), // 1972-04-27T07:45:05 | ||
createDatetimeInterpretation("%Y-%m-%dT%H:%M:%SZ"), // 1972-04-27T10:10:10Z | ||
@@ -86,0 +88,0 @@ createDatetimeInterpretation("%d/%m/%Y", function(str, passed_primary_test) { // 27/04/1972 |
@@ -178,3 +178,5 @@ const { expect } = require("chai"); | ||
checkMatch("%Y-%m-%dT%H:%M:%S.%LZ", "2016-12-03T08:19:56.000Z", 2016); | ||
checkMatch("%Y-%m-%dT%H:%M:%SZ", "2016-12-03T08:19:56Z", 2016); | ||
checkMatch("%Y-%m-%d %H:%M:%S", "2016-12-03 08:19:56", 2016); | ||
checkMatch("%Y-%m-%dT%H:%M:%S", "2016-12-03T08:19:56", 2016); | ||
checkMatch("%Y-%m-%d", "2016-12-03", 2016); | ||
@@ -181,0 +183,0 @@ checkMatch("%Y-%m", "2016-12", 2016); |
105839
2189