MCPcopy Create free account
hub / github.com/breck7/scroll / formatZone

Function formatZone

external/.d3.js:16577–16582  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

16575}
16576
16577function formatZone(d) {
16578 var z = d.getTimezoneOffset();
16579 return (z > 0 ? "-" : (z *= -1, "+"))
16580 + pad(z / 60 | 0, "0", 2)
16581 + pad(z % 60, "0", 2);
16582}
16583
16584function formatUTCDayOfMonth(d, p) {
16585 return pad(d.getUTCDate(), p, 2);

Callers

nothing calls this directly

Calls 1

padFunction · 0.85

Tested by

no test coverage detected