MCPcopy Create free account
hub / github.com/CoderOpen/waimai / _format

Function _format

front/common/util.js:57–59  ·  view source on GitHub ↗
(number)

Source from the content-addressed store, hash-verified

55 return this.humanize(diff);
56 }
57 var _format = function (number) {
58 return (number < 10 ? ('0' + number) : number);
59 };
60 return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDate()) + '-' +
61 _format(date.getHours()) + ':' + _format(date.getMinutes());
62 },

Callers 1

util.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected