View Full Version : Getting time difference
06-03-2004, 02:14 PM
Anyone know the function to compare two TIMESTAMPS (of 14 digits each) which will return the difference in seconds?
06-03-2004, 04:43 PM
since timestamps are seconds. simply...
echo (timestamp1 - timestamp2);
06-03-2004, 04:46 PM
Not 14 digit MySQL timestamps... which is to what I am refering to.
They come in the following format:
This is 3 June 2004, 4:45:00pm
06-03-2004, 05:00 PM
here's a date-time class that may help you
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.