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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:1:   //! module Calendar      #define zero int(0..0)      import "."; - #include "localization.h" +       constant CALUNKNOWN=-1000; // not calculated yet      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=Ruleset() -  ->set_timezone(default_timezone) -  ->set_language(default_language); + Ruleset default_rules= +  master()->resolv("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.   //!   //! A TimeRange doubles as both a fixed period in   //! time, and an amount of time. For instance,