mirror of
https://github.com/ADElectronics/RTL00_WEB_VS.git
synced 2024-11-24 22:14:16 +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> |