RTL00_WEB/WEBFiles/time.inc
2017-04-23 12:26:57 +03:00

9 lines
No EOL
337 B
C++

<script type="text/javascript">
var x = ~sntp_time~*1000;
if(x){
var d = new Date(x);
document.getElementById('sntptime').innerHTML= d.toLocaleDateString()+" "+d.toLocaleTimeString();
}
var d = new Date(new Date()-(~sys_time~));
document.getElementById('starttime').innerHTML= d.toLocaleDateString()+" "+d.toLocaleTimeString();
</script>