MCPcopy Create free account
hub / github.com/apache/cloudstack / dateStrGetter

Function dateStrGetter

tools/ngui/static/js/lib/angular.js:9986–9993  ·  view source on GitHub ↗
(name, shortForm)

Source from the content-addressed store, hash-verified

9984}
9985
9986function dateStrGetter(name, shortForm) {
9987 return function(date, formats) {
9988 var value = date['get' + name]();
9989 var get = uppercase(shortForm ? ('SHORT' + name) : name);
9990
9991 return formats[get][value];
9992 };
9993}
9994
9995function timeZoneGetter(date) {
9996 var zone = -1 * date.getTimezoneOffset();

Callers 1

angular.jsFile · 0.85

Calls 1

uppercaseFunction · 0.85

Tested by

no test coverage detected