• 0

Calculate time in seconds between now and Friday at 5pm


Question

I have a countdown timer on my website that needs the time in seconds between the current time and a certain date, say, next Friday at 5pm. The calculation needs to be made just once -- after a user loads the page the PHP needs to calculate the time in seconds and the Javascript will count down after that. How exactly do I get PHP to do this?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Why ?   Just Why ? :huh:

 

 

LOL. I have a deal on my site that expires for all users at a certain time. It'd be pretty difficult for me to end the deal separately for each time zone...

Link to comment
Share on other sites

This topic is now closed to further replies.