From f178d3efabcd6b0e16a93c785ace230a02972fc0 Mon Sep 17 00:00:00 2001 From: Guillaume Wuip Date: Mon, 8 Sep 2014 12:03:35 +0200 Subject: [PATCH] Add console.day() --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 605b271..a1185e4 100644 --- a/index.js +++ b/index.js @@ -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) {