Site Notice

hello, world

Time

From Project-EPB Commons

<html><span id="time" onclick="time()">time</span></html> <html><script> function time() {

var now = new Date(),
    y = now.getFullYear(), m = Number(now.getMonth() + 1), d = Number(now.getDate());
if (m < 10) m = '0' + m;
if (d < 10) d = '0' + d;
var time1 = y + '-' + m + '-' + d;
 $("#time").text(time1);

} </script> </html>