Convertir TIMESTAMP de UNIX hasta la fecha en JavaScript-TimeElement. js
| Autor: | hellshltd |
|---|---|
| Views Total: | 561 |
| Sitio oficial: | Ir a la web |
| Actualizado: | June 7, 2018 |
| Licencia: | MIT |
Vista prévia
Descripción
TimeElement. js es un convertidor de marca de tiempo UNIX basado en JavaScript ligero y fácil de usar que convierte las marcas temporales de UNIX a fechas legibles .
Funcionamiento
Descargue y coloque el script ' TimeElement. js ' en la parte inferior de la página web, pero antes de la etiqueta body de cierre.
<script src="TimeElement.js"></script>
Inicializar la biblioteca TimeElement. js.
calculateTimeElements()
Inserte una marca de tiempo de UNIX en el atributo ' Data-Time ' y done.
h2>Year</h2> <p>The beginning of (UNIX) time: <span data-time="0"></span></p> <h2>Date</h2> <p>The time of writing this: <span data-time="1509167749"></span></p>
Tiempos de desactivación.
<h2>Notime</h2> <p>The time of writing this but the clock broke: <span data-time="1509167749" data-notime=""></span></p>





