MCPcopy Create free account
hub / github.com/idank/explainshell / d3_time_zone

Function d3_time_zone

explainshell/web/static/js/d3.v3.js:8215–8218  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

8213 pm: 1
8214 });
8215 function d3_time_zone(d) {
8216 var z = d.getTimezoneOffset(), zs = z > 0 ? "-" : "+", zh = ~~(Math.abs(z) / 60), zm = Math.abs(z) % 60;
8217 return zs + d3_time_formatPad(zh, "0", 2) + d3_time_formatPad(zm, "0", 2);
8218 }
8219 d3.time.format.utc = function(template) {
8220 var local = d3.time.format(template);
8221 function format(date) {

Callers

nothing calls this directly

Calls 1

d3_time_formatPadFunction · 0.85

Tested by

no test coverage detected