PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Comparing time using PHP Posted by mattaseymour on 9 Jul 2008 at 3:25 AM
I am looking to compare two times I have collected, the data consists of a current day/ time, and I am looking to compare this to a previous day/ time.
If the dates are within 24 hours of each other then all is good if its within 30 hours then there might be a problem.
And if the date is over 30 hours then an error has occured.

Does anyone know the best way of comparing these dates and times?

Thanks
Matt
Report
Re: Comparing time using PHP Posted by mattaseymour on 11 Jul 2008 at 1:53 AM
No worries turned out I could sort it my self!
-----------------
http://www.matthewseymour.co.uk



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.