MCPcopy
hub / github.com/angular-ui/ui-grid / dateStrGetter

Function dateStrGetter

lib/test/angular/1.7.0/angular.js:22055–22063  ·  view source on GitHub ↗
(name, shortForm, standAlone)

Source from the content-addressed store, hash-verified

22053}
22054
22055function dateStrGetter(name, shortForm, standAlone) {
22056 return function(date, formats) {
22057 var value = date['get' + name]();
22058 var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
22059 var get = uppercase(propPrefix + name);
22060
22061 return formats[get][value];
22062 };
22063}
22064
22065function timeZoneGetter(date, formats, offset) {
22066 var zone = -1 * offset;

Callers 1

angular.jsFile · 0.70

Calls 1

uppercaseFunction · 0.70

Tested by

no test coverage detected