Branch: Tag:

2003-03-30

2003-03-30 12:53:21 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

Applied patch from Mirar.

Rev: lib/modules/Calendar.pmod/YMD.pike:1.4

2486:    TimeRange tr;    if (catch {    tr=origin[whut](h,m,s); -  } && h==24 && m==0 && s==0) // special case +  }) { +  if (h==24 && m==0 && s==0) // special case    return origin->end()->second(); -  +  else { +  object d=origin->day(); +  array(cHour) ha=origin->hours(); +  int n=search(ha->hour_no(),h); +  if (n!=-1) tr=ha[n]->minute(m)->second(s); +  else return 0; // no such hour +  } +  }       if (tr->hour_no()!=h || tr->minute_no()!=m)    {