calculate time between two dates

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benyboi
Forum Commoner
Posts: 80
Joined: Sat Feb 24, 2007 5:37 am

calculate time between two dates

Post by benyboi »

if someone can, could you please give me proper code for this rather than just functions.

so, i would like to calculate the time between two dates:

-server time

and

- set date

i would like it to be displayed as ".. days .. hours .. mins"

Thanks!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

we aren't here to write your code for you. you haven't even searched the forums... I just searched for your exact thread title and found tons of results. :roll:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's something in Code Snippets that would be of interest written by "printf"
Post Reply