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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Rule.pmod:4:   class Timezone   {    constant is_timezone=1;       // seconds to utc, not counting DST    protected int offset_to_utc;       // timezone name    string name;    -  //! @decl void create(int offset, string name) +     //! @param offset    //! Offset to UTC, not counting DST.    //! @param name    //! The name of the time zone. -  protected void create(int offset, string _name) +  protected void create(int offset, string name)    {    offset_to_utc=offset; -  name=_name; +  this_program::name=name;    }       // seconds to UTC, counting DST       //! @fixme    //! This method takes one integer argument, ignores it and    //! returns an array with the UTC offset and the timezone name.    array tz_ux(int unixtime) {    return ({offset_to_utc,name});    }       //! @fixme    //! This method takes one integer argument, ignores it and    //! returns an array with the UTC offset and the timezone name.    array tz_jd(int julian_day) {    return ({offset_to_utc,name});    }    -  string _sprintf(int t) { return (t=='O')?"Timezone("+name+")":0; } +  protected string _sprintf(int t) +  { +  return t=='O' && "Timezone("+name+")"; +  }       //! Returns the offset to UTC, not counting DST.    int raw_utc_offset() { return offset_to_utc; }   }      class Language   {    constant is_language=1;       string month_name_from_number(int n);