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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Timezone.pmod:332:    }       array(int) tz_jd(int julian_day)    {    array z=what->tz_jd(julian_day);    return ({z[0]+extra_offset,z[1]+extra_name});    }       string _sprintf(int t)    { -  return (t=='O')?sprintf("%O%s",what,extra_name):0; +  return (t=='O')?sprintf("%O%s",what,extra_name || ""):0;    }       int raw_utc_offset() { return what->raw_utc_offset()+extra_offset; }   }      static private .Rule.Timezone _make_new_timezone_i(string tz,int plusminus)   {    .Rule.Timezone z=`[](tz);    if (!z) return UNDEFINED;    return make_new_timezone(z,plusminus);
pike.git/lib/modules/Calendar.pmod/Timezone.pmod:545:    break;    default:    error("illegal size of a\n");    }    }       string _sprintf(int t)    {    return (t=='O')?    sprintf("Shift(%s,%d%s,%+d,%O)", -  dayrule,time,timetype,offset,s): +  dayrule || "<unset>", time, +  timetype || "<unset>", offset, s):    0;    }       int `==(Shift other)    {    return ( dayrule==other->dayrule &&    time==other->time &&    timetype==other->timetype &&    offset==other->offset &&    s==other->s );