Reverse Time Counter Help
Page 1 of 1
Ronhrin
Banned



Posts: 6428
Location: Paradigms are changeable, reality is absolute.
PostPosted: Sat, 17th Dec 2005 13:31    Post subject: Reverse Time Counter Help
I need help coding a Reverse Time Counter for my website and also be able to display the current date (GMT) automaticly, just post the code or some link where I can find a similar code.


the reverse time counter is just something like:

Remaining Time:

2 Weeks, 3 Days, 11 Hours, 32 Minutes And Counting...


He who sacrifices freedom for security deserves neither
- Benjamin Franklin - 1759

Back to top
Avenger_




Posts: 658
Location: Norway
PostPosted: Sat, 17th Dec 2005 17:00    Post subject:
Well, it all depends on how which scripting language you would want to use. If you use php I would suggest to take a look at the date() function to retrieve the current date and time. It can give you the time in many formats.
http://www.php.net/date

The rest is just math. To subract one date from another isn't that hard, but it's easy to fuck it up Smile

Edit: There are some examples posted there that pretty much does the same ting as you want.
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group