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

Function timeZoneGetter

test/angular/1.6/angular.js:21954–21962  ·  view source on GitHub ↗
(date, formats, offset)

Source from the content-addressed store, hash-verified

21952}
21953
21954function timeZoneGetter(date, formats, offset) {
21955 var zone = -1 * offset;
21956 var paddedZone = (zone >= 0) ? '+' : '';
21957
21958 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
21959 padNumber(Math.abs(zone % 60), 2);
21960
21961 return paddedZone;
21962}
21963
21964function getFirstThursdayOfYear(year) {
21965 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected