horodatage js
var timestamp = new Date().getTime();
horodatage javascript en secondes
const ts = () => Math.floor(new Date().getTime() / 1000);
javascript obtenir l'horodatage
var currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
var currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds
comment obtenir l'horodatage en javascript d'un objet date
new Date().getTime()
new Date().valueOf()
comment obtenir l'horodatage en javascript
const currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds