mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 14:55:01 +00:00
Add console.day()
This commit is contained in:
parent
bb9c4bc53c
commit
f178d3efab
1 changed files with 7 additions and 1 deletions
8
index.js
8
index.js
|
@ -341,10 +341,16 @@ console.t = function(n, _) {
|
||||||
return ext;
|
return ext;
|
||||||
};
|
};
|
||||||
|
|
||||||
console.time = function () {
|
//Print day, example: 'Sep_8_14'
|
||||||
|
console.day = function () {
|
||||||
return new Extender(moment().format('MMM_D_YY') + spaces($.indentation));
|
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, _) {
|
console.f = function(n, _) {
|
||||||
|
|
||||||
if (!n) {
|
if (!n) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue