MySQL Forums
Forum List  »  Newbie

Re: time comparison issue
Posted by: cadex
Date: June 27, 2005 11:59PM

I'm by no means an expert, but you helped me in another post so the least I could do is try.

there is a function called DATEDIFF() that should give you the difference between two dates. My other suggestion is to maybe have MySQL create a timestamp instead of PHP. For that you could use CURRENT_TIMESTAMP() or CURTIME().

You could also compare them in your SELECT statement if you wanted using the WHERE clause.

At least this is what I've gathered from what I've read over the last few weeks.

Take Care
Kyle

Options: ReplyQuote


Subject
Written By
Posted
June 27, 2005 11:12PM
Re: time comparison issue
June 27, 2005 11:59PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.