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.23 2003/03/13 02:18:43 nilsson Exp $ + // $Id: TimeRanges.pmod,v 1.24 2003/06/27 13:35:20 jhs Exp $      #pike __REAL_VERSION__      #define zero int(0..0)      program SuperTimeRange=cSuperTimeRange;      string calendar_name() { return "TimeRanges"; }      object calendar_object=this_object();      string _sprintf(int t) { return (t=='O')?calendar_name():0; }      .Ruleset default_rules=Calendar.default_rules;      //------------------------------------------------------------------------   //! class TimeRange - //! This is the base class for any time measurement - //! and calendrar information. It defines all the - //! things you can do with a time range, any time - //! period. + //! This is the base class (usually implemented by e.g. Calendar + //! subclasses like Calendar.Second) for any time measurement and + //! calendrar information. It defines all the things you can do + //! with a time range or any time period.   //!   //! A TimeRange doubles as both a fixed period in   //! time, and an amount of time. For instance,   //! a week plus a day moves the week-period one day   //! ahead (unaligning it with the week period,   //! and thereby reducing it to just 7 days),   //! no matter when in time the actual day were.   //!   //------------------------------------------------------------------------