Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: d3-time-format
node v4.9.1
version:
master
endpoint
share
tweet
var d3 = require("d3-time-format"); var parseMilliseconds = d3.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"), stripNanoseconds = function(s) { return s.slice(0, -4) + "Z"; }, parseTime = function(s) { return parseMilliseconds(stripNanoseconds(s)); }; parseTime("2016-10-06T20:32:56.523411Z").toUTCString();
Created from: https://runkit.com/npm/d3-time-format
Loading…
no comments
sign in
to comment