RTL00_WEB/WEBFiles/time.inc

9 lines
337 B
PHP
Raw Permalink Normal View History

2017-04-22 13:54:00 +00:00
<script type="text/javascript">
var x = ~sntp_time~*1000;
if(x){
var d = new Date(x);
document.getElementById('sntptime').innerHTML= d.toLocaleDateString()+" "+d.toLocaleTimeString();
}
2017-04-23 09:26:57 +00:00
var d = new Date(new Date()-(~sys_time~));
2017-04-22 13:54:00 +00:00
document.getElementById('starttime').innerHTML= d.toLocaleDateString()+" "+d.toLocaleTimeString();
</script>