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

Function timeZoneGetter

lib/test/angular/1.4.3/angular.js:18636–18644  ·  view source on GitHub ↗
(date, formats, offset)

Source from the content-addressed store, hash-verified

18634}
18635
18636function timeZoneGetter(date, formats, offset) {
18637 var zone = -1 * offset;
18638 var paddedZone = (zone >= 0) ? "+" : "";
18639
18640 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
18641 padNumber(Math.abs(zone % 60), 2);
18642
18643 return paddedZone;
18644}
18645
18646function getFirstThursdayOfYear(year) {
18647 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected