X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=auto_tests%2Ftests%2Fdate_formats.js;h=5148fe7fb6a84a34a79ec50d174749bf9a177019;hb=2d0fdf6eb18eafde50830b8109f42e20b82247b1;hp=f157b8dd4597be4dd1cdca5e0ff0bb4e77e35594;hpb=8cc4108bdb0db5006d794be50d1bbca9558373e9;p=dygraphs.git diff --git a/auto_tests/tests/date_formats.js b/auto_tests/tests/date_formats.js index f157b8d..5148fe7 100644 --- a/auto_tests/tests/date_formats.js +++ b/auto_tests/tests/date_formats.js @@ -36,4 +36,12 @@ it('testHyphenatedDate', function() { assert.equal(Date.UTC(2000, 1, 2), utils.dateParser(str)); }); +it('testMillisecondsDate', function() { + // Format: YYYY-MM-DD HH:MM:SS.MS + + // Midnight February 2, 2000 14:25:42.123 UTC + var ts = Date.UTC(2000, 1, 2, 14, 25, 42, 123); + assert.equal("2000/02/02 14:25:42.123", utils.dateString_(ts, true)); +}); + });