?
Solved

compare two timevalues

Posted on 2011-02-28
2
Medium Priority
?
296 Views
Last Modified: 2012-05-11

compare these two time values

P2DT16H38M54S


P2DT16H38M56S



if ($first>$second) do something

0
Comment
Question by:rgb192
2 Comments
 
LVL 10

Accepted Solution

by:
NetExpert-Warszawa earned 2000 total points
ID: 35000343
Parse the values using strptime function.
http://www.php.net/manual/en/function.strptime.php
0
 

Author Closing Comment

by:rgb192
ID: 35000479
thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month14 days, 12 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question