WebSite X5Help Center

 
Domingos Costa
Domingos Costa
User

Automatic visualization on the Site of the date and time of recording/updating of the Project.  en

Autor: Domingos Costa
Visitado 1603, Followers 1, Compartido 0  

How can the date and time of recording/updating the project be automatically inserted in the Site? I can not find any MarketPlace utilities to do this.

Thanks

Publicado en
3 RESPUESTAS - 2 úTIL
Domingos Costa
Domingos Costa
User
Autor

PT - (Meu objetivo é que o navegador exiba a data/hora em que o site foi alterado/atualizado no servidor e que essa data/hora não possa ser alterada pelo navegador.
O meu interesse é que naveguem no Site e saber sempre a data/hora exata em que a página foi atualizada.)

Obrigado

----------------------------

EN - My goal is for the browser to display the date/time the site was changed/updated on the server and that this date/time can not be changed by the browser.
I'm interested in navigating the Site and knowing the exact date/time that the page was updated.

Thanks

(Sorry Portuguese to English by the Google)

Leer más
Publicado en de Domingos Costa
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Usuario del mes ESUsuario del mes PT
Domingos C.
... ... ... ... EN - My goal is for the browser to display the date/time the site was changed/updated on the server and that this date/time can not be changed by the browser. I'm interested in navigating the Site and knowing the exact date/time that the page was updated. ... ... ...

(It > En)! ... in an HTML Code Object paste or type:
[NOW] ... x the date of publication / update
-----------------------------------------
[DATE] ... x today's date
[HOUR] ... x see the current time
-----------------------------------------

-----JS------------------------------------
... or, x the date of publication / update,
  paste or type this code JS:
<script> document.write (document.lastModified); </ script>

-----JS------ [GG-MM-AAAA] ------------------------------

<script>//GG-MM-AAAA-by KolAsim
dataK = document.lastModified.split("/");
document.write( dataK[1] + "-"+ dataK[0] + "-"+ dataK[2]);
</script>

------PHP----------------------------------
... or, x the date of publication / update on the server  side,
  paste or type this PHP code on page with PHP  extension:
<?php echo  date("Y-m-d | h:i:sa",  getlastmod()); ?>

.

ciao

.

Leer más
Publicado en de  ‪ KolAsim ‪ ‪