MCPcopy Create free account
hub / github.com/angular-ui/ui-router / dateStrGetter

Function dateStrGetter

test/angular/1.6/angular.js:21944–21952  ·  view source on GitHub ↗
(name, shortForm, standAlone)

Source from the content-addressed store, hash-verified

21942}
21943
21944function dateStrGetter(name, shortForm, standAlone) {
21945 return function(date, formats) {
21946 var value = date['get' + name]();
21947 var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
21948 var get = uppercase(propPrefix + name);
21949
21950 return formats[get][value];
21951 };
21952}
21953
21954function timeZoneGetter(date, formats, offset) {
21955 var zone = -1 * offset;

Callers 1

angular.jsFile · 0.70

Calls 1

uppercaseFunction · 0.70

Tested by

no test coverage detected