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

Автор: Domingos Costa
Просмотрено 1308, Подписчики 1, Размещенный 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

Размещено
3 Ответы - 1 Полезно
Domingos Costa
Domingos Costa
User
Автор

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)

Читать больше
Размещено От Domingos Costa
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца 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

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪