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.19 2003/01/26 09:11:16 mirar Exp $ + // $Id: TimeRanges.pmod,v 1.20 2003/03/10 01:24:08 nilsson 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:903:   //! 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|Ruleset.Timezone tz) +  TimeRange set_timezone(string|Rule.Timezone tz)    {    return set_ruleset(rules->set_timezone(tz));    }    -  Ruleset.Timezone timezone() +  Rule.Timezone timezone()    {    return rules->timezone;    }      //! method TimeRange set_language(Language lang)   //! method TimeRange set_language(string lang)   //! method Language language()   //! Set or get the current language rule.    -  TimeRange set_language(string|Ruleset.Language lang) +  TimeRange set_language(string|Rule.Language lang)    {    return set_ruleset(rules->set_language(lang));    }    -  Ruleset.Language language() +  Rule.Language language()    {    return rules->language;    }      //! method Calendar calendar()   //! Simply gives back the calendar in use, for instance   //! Calendar.ISO or Calendar.Discordian.       object calendar()    {
pike.git/lib/modules/Calendar.pmod/TimeRanges.pmod:1146:    case 'O':    return "SuperTimeRange("+    map(parts,"_sprintf",'O')*", "+")";    case 't':    return "SuperTimeRange("+    map(parts,"_sprintf",'t')*", "+")";    }    return ::_sprintf(t,m);    }    -  TimeRange set_timezone(string|Ruleset.Timezone tz) +  TimeRange set_timezone(string|Rule.Timezone tz)    {   // fixme?    return `|(@map(parts,"set_timezone",tz));    }   }      //! constant TimeRange nulltimerange   //! This represents the null time range,   //! which, to differ from the zero time range   //! (the zero-length time range), isn't placed