MCPcopy Create free account
hub / github.com/SimHacker/micropolis / f

Function f

turbogears/micropolis/htdocs/static/javascript/all_pretty.js:294–296  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

292
293(function () {
294 function f(n) {
295 return n < 10 ? '0' + n : n;
296 }
297 if (typeof Date.prototype.toJSON !== 'function') {
298 Date.prototype.toJSON = function (key) {
299 return isFinite(this.valueOf()) ? this.getUTCFullYear() + '-' + f(this.getUTCMonth() + 1) + '-' + f(this.getUTCDate()) + 'T' + f(this.getUTCHours()) + ':' + f(this.getUTCMinutes()) + ':' + f(this.getUTCSeconds()) + 'Z' : null;

Callers 1

all_pretty.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected