You are here: Re: How to calculate the running time « PHP Programming Language « IT news, forums, messages
Re: How to calculate the running time

Posted by Krustov on 03/23/07 21:25

<comp.lang.php>
<iktorn>
<Fri, 23 Mar 2007 21:58:38 +0100>
<eu1f0k$ghm$1@news.task.gda.pl>

> > 18:05
> > 21:10
> >
> > 23:20
> > 01:15
> >
> > etc
> >
> > The ideal solution would be one that takes two unknown values to produce
> > a end result value running time like 100 minutes .
>
> function f($start,$end){
> return ($start>$end?(strtotime("+1 day
> ".$end)-strtotime($start)):(strtotime($end)-strtotime($start)))/60;
> }
>

That does the job fine - nice one dude .

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация