Site Notice

hello, world

Time

From Project-EPB Commons
Revision as of 14:28, 5 January 2020 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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 time = y + '-' + m + '-' + d;
 return time;

} </script> </html>