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

Function timeZoneGetter

lib/test/angular/1.6.7/angular.js:21627–21635  ·  view source on GitHub ↗
(date, formats, offset)

Source from the content-addressed store, hash-verified

21625}
21626
21627function timeZoneGetter(date, formats, offset) {
21628 var zone = -1 * offset;
21629 var paddedZone = (zone >= 0) ? '+' : '';
21630
21631 paddedZone += padNumber(Math[zone > 0 ? 'floor' : 'ceil'](zone / 60), 2) +
21632 padNumber(Math.abs(zone % 60), 2);
21633
21634 return paddedZone;
21635}
21636
21637function getFirstThursdayOfYear(year) {
21638 // 0 = index of January

Callers

nothing calls this directly

Calls 1

padNumberFunction · 0.70

Tested by

no test coverage detected