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.27 2004/01/11 00:51:22 nilsson Exp $ + // $Id: TimeRanges.pmod,v 1.28 2004/03/30 18:11:59 nilsson Exp $      #pike __REAL_VERSION__      #define zero int(0..0)      program SuperTimeRange=cSuperTimeRange;      string calendar_name() { return "TimeRanges"; }      object calendar_object=this;
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:875:    return res;    }      //! method TimeRange set_ruleset(Ruleset r)   //! method TimeRange ruleset(Ruleset r)   //! Set or get the current ruleset.   //! note:   //! this may include timezone shanges,   //! and change the time of day.    -  TimeRange set_ruleset(.Ruleset r); +  this_program set_ruleset(.Ruleset r);    .Ruleset ruleset()    {    return rules;    }      //! method TimeRange set_timezone(Timezone tz)   //! method TimeRange set_timezone(string tz)   //! method TimeZone timezone()   //! Set or get the current timezone (including dst) rule.   //!   //! note:   //! The time-of-day may very well   //! change when you change timezone.   //!   //! To get the time of day for a specified timezone,   //! select the timezone before getting the time of day:   //!   //! <tt>Year(2003)-&gt;...-&gt;set_timezone(TimeZone.CET)-&gt;...-&gt;hour(14)-&gt;...</tt>   //!    -  TimeRange set_timezone(string|.Rule.Timezone tz) +  this_program set_timezone(string|.Rule.Timezone tz)    {    return set_ruleset(rules->set_timezone(tz));    }       .Rule.Timezone timezone()    {    return rules->timezone;    }      //! method TimeRange set_language(Rule.Language lang)   //! method TimeRange set_language(string lang)   //! method Language language()   //! Set or get the current language rule.    -  TimeRange set_language(string|.Rule.Language lang) +  this_program set_language(string|.Rule.Language lang)    {    return set_ruleset(rules->set_language(lang));    }       .Rule.Language language()    {    return rules->language;    }      //! method Calendar calendar()