source:
Dev/trunk/d3/test/time/test-parse-iso.js
@
76
Last change on this file since 76 was 76, checked in by fpvanagthoven, 14 years ago | |
---|---|
File size: 359 bytes |
Line | |
---|---|
1 | require("./../../lib/env-js/envjs/node"); |
2 | require("./../../d3"); |
3 | require("./../../d3.time"); |
4 | |
5 | var f = d3.time.format.utc("%c"); |
6 | |
7 | console.log("parse:"); |
8 | console.log(" 1990-01-01T00:00:00Z ->", f(d3.time.format.iso.parse("1990-01-01T00:00:00Z"))); |
9 | console.log(" 2011-12-31T23:59:59Z ->", f(d3.time.format.iso.parse("2011-12-31T23:59:59Z"))); |
10 | console.log(""); |
Note: See TracBrowser
for help on using the repository browser.