The following returns time in microseconds, for example 4565212462.
alert( $.now() );
How do I convert it to a human readable time format, such as (hours:minutes:seconds)?
You may try like this:
new Date($.now());
Also using Javascript you can do like this:
var dt = new Date(); var time = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds(); document.write(time);
2.1m questions
2.1m answers
60 comments
57.0k users