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

Function timeZoneGetter

test/angular/1.5/angular.js:21014–21022  ·  view source on GitHub ↗
(date, formats, offset)

Source from the content-addressed store, hash-verified

21012}
21013
21014function timeZoneGetter(date, formats, offset) {
21015 var zone = -1 * offset;
21016 var paddedZone = (zone >= 0) ? '+' : '';
21017
21018 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
21019 padNumber(Math.abs(zone % 60), 2);
21020
21021 return paddedZone;
21022}
21023
21024function getFirstThursdayOfYear(year) {
21025 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected