pike.git / lib / modules / Calendar.pmod / TimeRanges.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:278:    {    return add(n);    }       TimeRange `-(TimeRange|program|int n)    {    if (objectp(n)) return add(-1,n);    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   //! the same as doing <tt>t-><ref>set_size</ref>(t,17)</tt>.       function ``* = `*;    TimeRange `*(int n)    {    return set_size(n,this_object());    }