MCPcopy Create free account
hub / github.com/angular-ui/ui-router / timeZoneGetter

Function timeZoneGetter

test/angular/1.3/angular.js:17254–17262  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

17252}
17253
17254function timeZoneGetter(date) {
17255 var zone = -1 * date.getTimezoneOffset();
17256 var paddedZone = (zone >= 0) ? "+" : "";
17257
17258 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
17259 padNumber(Math.abs(zone % 60), 2);
17260
17261 return paddedZone;
17262}
17263
17264function getFirstThursdayOfYear(year) {
17265 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected