Branch: Tag:

2000-08-04

2000-08-04 14:35:43 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added next and prev

Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.3

285:    return add(-n);    }    + //! method TimeRange next() + //! method TimeRange prev() + //! Next and prev are compatible and convinience functions; + //! <tt>a->next()</tt> is exactly the same as <tt>a+1</tt>; + //! <tt>a=a->next()</tt> is <tt>a++</tt>. +  +  TimeRange next() +  { +  return this_object()+1; +  } +  +  TimeRange prev() +  { +  return this_object()-1; +  } +    //! method TimeRange `*(int n)   //! This changes the amount of time in   //! the time period. <tt>t*17</tt> is