mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2024-12-29 09:05:18 +00:00
9 lines
No EOL
337 B
C++
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> |