horodatage javascript en secondes
const ts = () => Math.floor(new Date().getTime() / 1000);
horodatage unix javasctipt à partir de la date
Math.round(new Date().getTime() / 1000).toString()
javascript obtenir l'horodatage
var currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
var currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds
angulaire obtenir l'horodatage actuel
var currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
var currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds
horodatage unix js
+ new Date()