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]
|