MCPcopy Create free account
hub / github.com/Famous/famous-angular / pad

Function pad

changelog.js:73–75  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

71var currentDate = function() {
72 var now = new Date();
73 var pad = function(i) {
74 return ('0' + i).substr(-2);
75 };
76
77 return util.format('%d-%s-%s', now.getFullYear(), pad(now.getMonth() + 1), pad(now.getDate()));
78};

Callers 1

currentDateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected