MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / dateStrGetter

Function dateStrGetter

lib/test/angular/1.6.7/angular.js:21617–21625  ·  view source on GitHub ↗
(name, shortForm, standAlone)

Source from the content-addressed store, hash-verified

21615}
21616
21617function dateStrGetter(name, shortForm, standAlone) {
21618 return function(date, formats) {
21619 var value = date['get' + name]();
21620 var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
21621 var get = uppercase(propPrefix + name);
21622
21623 return formats[get][value];
21624 };
21625}
21626
21627function timeZoneGetter(date, formats, offset) {
21628 var zone = -1 * offset;

Callers 1

angular.jsFile · 0.70

Calls 1

uppercaseFunction · 0.70

Tested by

no test coverage detected