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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Time.pmod:27:      // sanity check      static private int __sanity_check=lambda()   {    if (5000000000!=5*inano)    error("Calendar.Time needs bignums (Gmp.mpz)\n");    return 1;   }();    - Ruleset.Timezone Timezone_UTC=Ruleset()->Timezone(0,"UTC"); // needed for dumping + Rule.Timezone Timezone_UTC=Rule.Timezone(0,"UTC"); // needed for dumping      string calendar_name() { return "Time"; }      //------------------------------------------------------------------------   //! class TimeOfDay   //------------------------------------------------------------------------      class TimeofDay   {   //! inherits TimeRange
pike.git/lib/modules/Calendar.pmod/Time.pmod:1965:   //! as the called calendar but with another set of rules.   //!   //! Example:   //! <pre>   //! &gt; Calendar.now();   //! Result: Fraction(Fri 2 Jun 2000 18:03:22.010300 CET)   //! &gt; Calendar.set_timezone(Calendar.Timezone.UTC)->now();   //! Result: Fraction(Fri 2 Jun 2000 16:03:02.323912 UTC)   //! </pre>    - this_program set_timezone(string|Ruleset.Timezone tz) + this_program set_timezone(string|Rule.Timezone tz)   {    return set_ruleset(default_rules->set_timezone(tz));   }    - Ruleset.Timezone timezone() + Rule.Timezone timezone()   {    return default_rules->timezone;   }    - this_program set_language(string|Ruleset.Language lang) + this_program set_language(string|Rule.Language lang)   {    return set_ruleset(default_rules->set_language(lang));   }    - Ruleset.Language language() + Rule.Language language()   {    return default_rules->language;   }      //! method Calendar set_ruleset(Ruleset r)   //! method Ruleset ruleset()   //! Set or read the ruleset for the calendar.   //! <ref>set_ruleset</ref> returns a new calendar object,   //! but with the new ruleset.