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

Function currentDate

changelog.js:71–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
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};
79
80
81var printSection = function(stream, title, section, printCommitLinks) {

Callers 1

writeChangelogFunction · 0.85

Calls 1

padFunction · 0.85

Tested by

no test coverage detected