How would I check if a date in the format \"2008-02-16 12:59:57\" is less than 24 hours ago?
Php has a comparison function between two date/time objects, but I don't really like it very much. It can be imprecise.
What I do is use strtotime() to make a unix timestamp out of the date object, then compare it with the output of time().