Add console.day()

This commit is contained in:
Guillaume Wuip 2014-09-08 12:03:35 +02:00
parent bb9c4bc53c
commit f178d3efab

View file

@ -341,10 +341,16 @@ console.t = function(n, _) {
return ext;
};
console.time = function () {
//Print day, example: 'Sep_8_14'
console.day = function () {
return new Extender(moment().format('MMM_D_YY') + spaces($.indentation));
}
//Print time, example '9:14:67 AM'
console.time = function () {
return new Extender(moment().format('h:mm:ss A') + spaces($.indentation));
}
console.f = function(n, _) {
if (!n) {