Branch: Tag:

2000-10-18

2000-10-18 11:01:19 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

nulltimerange fix
added placement of time in weeks (using weekday and day placement)

Rev: lib/modules/Calendar.pmod/Time.pmod:1.6
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.12
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.15

1765:       TimeRange place(TimeRange what,void|int force)    { +  if (what->is_supertimerange) +  return what->mend_overlap(map(what->parts,place,force)); + // return `|(@map(what->parts,place,force)); +     if (what->is_year)    return year()->place(what,force); // just fallback       if (what->is_day)    return place_day(what->week_day(),what->n,force);    -  +  if (what->is_timeofday) +  return place(what->day(),force)->place(what,force); +     error("place: Incompatible type %O\n",what);    }