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

Function dateStrGetter

lib/test/angular/1.8.0/angular.js:22841–22849  ·  view source on GitHub ↗
(name, shortForm, standAlone)

Source from the content-addressed store, hash-verified

22839}
22840
22841function dateStrGetter(name, shortForm, standAlone) {
22842 return function(date, formats) {
22843 var value = date['get' + name]();
22844 var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
22845 var get = uppercase(propPrefix + name);
22846
22847 return formats[get][value];
22848 };
22849}
22850
22851function timeZoneGetter(date, formats, offset) {
22852 var zone = -1 * offset;

Callers 1

angular.jsFile · 0.70

Calls 1

uppercaseFunction · 0.70

Tested by

no test coverage detected