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

Function timeZoneGetter

test/angular/1.4/angular.js:19295–19303  ·  view source on GitHub ↗
(date, formats, offset)

Source from the content-addressed store, hash-verified

19293}
19294
19295function timeZoneGetter(date, formats, offset) {
19296 var zone = -1 * offset;
19297 var paddedZone = (zone >= 0) ? "+" : "";
19298
19299 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
19300 padNumber(Math.abs(zone % 60), 2);
19301
19302 return paddedZone;
19303}
19304
19305function getFirstThursdayOfYear(year) {
19306 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected