Solved

compare two timevalues

Posted on 2011-02-28
2
290 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 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

776 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