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

Function dateStrGetter

test/angular/1.5/angular.js:21004–21012  ·  view source on GitHub ↗
(name, shortForm, standAlone)

Source from the content-addressed store, hash-verified

21002}
21003
21004function dateStrGetter(name, shortForm, standAlone) {
21005 return function(date, formats) {
21006 var value = date['get' + name]();
21007 var propPrefix = (standAlone ? 'STANDALONE' : '') + (shortForm ? 'SHORT' : '');
21008 var get = uppercase(propPrefix + name);
21009
21010 return formats[get][value];
21011 };
21012}
21013
21014function timeZoneGetter(date, formats, offset) {
21015 var zone = -1 * offset;

Callers 1

angular.jsFile · 0.70

Calls 1

uppercaseFunction · 0.70

Tested by

no test coverage detected