' L'orologio interno in JavaScript conta dalla mezzanotte del 1 gennaio 1970.
' La funzione getTime () restituisce il numero di millisecondi da allora: https://www.w3schools.com/js/tryit.asp?filename=tryjs_date_gettime <!DOCTYPE html> <html> <body> <h2>JavaScript getTime()</h2> <p>The internal clock in JavaScript counts from midnight January 1, 1970.</p> <p>The getTime() function returns the number of milliseconds since then:</p> <p id="demo"></p> <script> var d = new Date(); document.getElementById("demo").innerHTML = d.getTime(); </script> </body> </html> |