Jump to content

[SOLVED] Date and time


Pavlos1316

Recommended Posts

Hello all,

 

I have this script for display date and time

 

<?php
$hourdiff = "2"; // hours diff btwn server and local time
$melbdate = date("l, d F Y h:i:s",time() + ($hourdiff * 3600));
print ("$melbdate");
?>

 

but I need it to update time every second (not only when I refresh the page...)

 

Can anyone help?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/161498-solved-date-and-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.