FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Verifying time in php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Verifying time in php [message #179394 is a reply to message #179391] Sun, 14 October 2012 20:39 Go to previous messageGo to previous message
houghi is currently offline  houghi
Messages: 45
Registered: September 2011
Karma:
Member
Michael Fesser wrote:
> And I would do the same here as described above. If all three values are
> empty or invalid, the result will automatically be 0 and can easily be
> rejected. And if values like 36h or 90m are accepted as well, even the
> range check could be omitted: just cast to int, maybe abs(), and then
> calculate the time in seconds, that's it. Why make things more difficult
> than necessary?

I make things more difficult, because some people will always count in
minutes when making movies and others will not.
So 80 will be hours for one and minutes for another.

And then there will yet be others wo do 16:34. So will that be 16 hours
and 34 minutes or 16 minutes and 34 seconds?

houghi
--
You are about to enter another dimension, a dimension not only of
sight and sound but of mind. A journey into a wondrous land of
imagination. Next stop, Usenet!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Curl chmod file transfer problem...
Next Topic: test
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 17:22:04 GMT 2024

Total time taken to generate the page: 0.04403 seconds