Jump to content

Time left with unix time()


Mutley

Recommended Posts

I have a variable that contains a 12 figure unix time ($oldtime). This updates to the current time every 2 hours.

 

What I wish to do with this, is display the time left... before it resets again, so it's counting down from 2 hours to 0, in which it then gets reset and it starts counting down all over again.

 

How would I do this?

 

Kind Regards,

Nick.

Link to comment
https://forums.phpfreaks.com/topic/121460-time-left-with-unix-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.