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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:1:   //! module Calendar    - // $Id: TimeRanges.pmod,v 1.13 2001/01/10 23:44:13 mirar Exp $ + // $Id: TimeRanges.pmod,v 1.14 2001/04/20 17:26:45 mirar Exp $      #pike __REAL_VERSION__      #define zero int(0..0)      import ".";      program SuperTimeRange=cSuperTimeRange;      string calendar_name() { return "TimeRanges"; }
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:507:   //! |----A----| A succeeds B,   //! |----B----| A overlaps B, A touches B   //!   //! |----A----| A strictly succeeds B, A succeeds B   //! |----B----| A is next to B, A touches B   //!   //! |----A----| A strictly succeeds B,   //! |----B----| A succeeds B   //!   //! </pre> + //! + //! note: + //! These methods only check the range of the first to the + //! last time in the period; + //! use of combined time periods (<ref>SuperTimeRange</ref>s) + //! might not give you the result you want. + //! + //! see also: `&    -  +    //- internal method   //- returns [-1,0,1] for comparison between   //- (in order) begin/begin,begin/end,end/begin and end/end      // virtual, default    array(int(-1..1)) _compare(TimeRange what)    {    if (objectp(what) && what->is_supertimerange)    {    array(int(-1..1)) cmp=what->_compare(this_object());