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

Function dateStrGetter

test/angular/1.7/angular.js:22776–22784  ·  view source on GitHub ↗
(name, shortForm, standAlone)

Source from the content-addressed store, hash-verified

22774}
22775
22776function dateStrGetter(name, shortForm, standAlone) {
22777 return function(date, formats) {
22778 var value = date['get' + name]();
22779 var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
22780 var get = uppercase(propPrefix + name);
22781
22782 return formats[get][value];
22783 };
22784}
22785
22786function timeZoneGetter(date, formats, offset) {
22787 var zone = -1 * offset;

Callers 1

angular.jsFile · 0.70

Calls 1

uppercaseFunction · 0.70

Tested by

no test coverage detected