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

Function timeZoneGetter

lib/test/angular/1.5.0/angular.js:19769–19777  ·  view source on GitHub ↗
(date, formats, offset)

Source from the content-addressed store, hash-verified

19767}
19768
19769function timeZoneGetter(date, formats, offset) {
19770 var zone = -1 * offset;
19771 var paddedZone = (zone >= 0) ? "+" : "";
19772
19773 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
19774 padNumber(Math.abs(zone % 60), 2);
19775
19776 return paddedZone;
19777}
19778
19779function getFirstThursdayOfYear(year) {
19780 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected