How to get current time with jQuery
问题 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) ? 回答1: 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: You need to fetch all "numbers" manually like this: var currentdate = new Date(); var datetime = "Now: " +