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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Event.pmod:35:    .TimeRanges.TimeRange next(void|.TimeRanges.TimeRange from,    void|int(0..1) including);    .TimeRanges.TimeRange previous(void|.TimeRanges.TimeRange from,    void|int(0..1) including);       //! This calculates the eventual events that is contained or    //! overlapped by the given timerange. @[scan] uses @[next], if not    //! overloaded.    //!    //! @example -  //! Event.christmas_eve->scan(Year(2000)) -  //! => ({ Day(Sun 24 Dec 2000) }) +  //! Calendar.Event.Easter()->scan(Calendar.Year(2000)) +  //! => ({ Day(Sun 23 Apr 2000) })    //!    //! @note    //! @[scan] can return an array of overlapping timeranges.    //!    //! This method must use @tt{in->calendar_object->@}@i{type@}    //! to create the returned timeranges, and must keep the ruleset.    array(.TimeRanges.TimeRange) scan(.TimeRanges.TimeRange in)    {    array res=({});    .TimeRanges.TimeRange t=next(in,1);