Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

comparing dates

Status
Not open for further replies.

donutzeatpeople

Programmer
May 4, 2002
7
US
Does anyone know of any build-in function or way to compare dates in PHP? For example, on a guestbook script, I would want to only allow a person to sign the guestbook once per hour or so. And it seems like I would have to write a pretty complicated function to verify this. So, I was wondering if there are any built-in functions or something that would compare two dates and tell me how far apart they are, or something to that extent.
 
if you are using mysql with the guestbook, then use a timestamp in a time field and you'll have most of the hard work cut out immediately. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top