“JavaScript calcule hace 24 horas” Código de respuesta

JavaScript obtenga un tiempo las 24 horas

var date = new Date();
console.log(date.toLocaleString('en-GB'));
Perfect Peccary

JavaScript calcule hace 24 horas

var ts = Math.round(new Date().getTime() / 1000);
var tsYesterday = ts - (24 * 3600);
Energetic Eel

JavaScript obtenga un tiempo las 24 horas

var options = { hour12: false };
console.log(date.toLocaleString('en-US', options));
Perfect Peccary

Respuestas similares a “JavaScript calcule hace 24 horas”

Preguntas similares a “JavaScript calcule hace 24 horas”

Más respuestas relacionadas con “JavaScript calcule hace 24 horas” en JavaScript

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código