Example custom time

This commit is contained in:
Guillaume Wuip 2015-02-02 18:13:52 +01:00
parent 2747cff88e
commit 0f8a327c89

View file

@ -14,6 +14,8 @@ console.log("A string %s and a number %d", "hello", "123"); //you can use printf
//Time
console.time().log("Print the full time");
console.date().log("Just print the date");
//custom time
console.time((new Date()).setFullYear(1999)).log("Custom time");
//Tags
console.tag("My Tag").log("Add a tag");