¿Cómo obtener el tiempo en milisegundos desde la época de unix en Javascript? [duplicar]
Posible Duplicado:
¿Cómo se obtiene una marca de tiempo en JavaScript?
Calculando milisegundos de epoch
¿Cómo puedo obtener la hora actual epoch
en Javascript? Básicamente el número de milisegundos desde la medianoche, 1970-01-01.
208
2 answers
var milliseconds = (new Date).getTime();
406
Author: Paulpro,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-03-05 23:46:23
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-03-05 23:46:23
new Date().valueOf()
hará el truco.
49
Author: raina77ow,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-06-01 15:11:59
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-06-01 15:11:59