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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkrules.pike:85:      class Shift   {    string dayrule;    int time;    string timetype;    int offset;    string s;    string comment;    -  void create(array a) +  protected void create(array a)    {    switch (sizeof(a))    {    case 5:    dayrule=think_day(a[0],a[1]);    comment=a[0]+" "+a[1];    // NB: The Morocco rule for 2011-07-31 has 0 as AT,    // while all others have 0:00.    [time,timetype] = parse_tod(a[2]) || ({ 0, "" });    switch (timetype)
pike.git/lib/modules/Calendar.pmod/mkrules.pike:119:    }    }       protected string _sprintf(int t)    {    return t=='O' &&    sprintf("Shift(%s,%d%s,%+d,%O)",    dayrule,time,timetype,offset,s);    }    -  int `==(Shift other) +  protected int `==(Shift other)    {    return ( dayrule==other->dayrule &&    time==other->time &&    timetype==other->timetype &&    offset==other->offset &&    s==other->s );    }    function(Shift:int) __equal=`==;       constant wday=(["Mon":1,"Tue":2,"Wed":3,"Thu":4,"Fri":5,"Sat":6,"Sun":7]);
pike.git/lib/modules/Calendar.pmod/mkrules.pike:190:    return "LDAY ("+(nleapy->month(mon)->day(d)->year_day())+    ","+wd+")";       return "LDAYL("+(nleapy->month(mon)->day(d)->year_day())+    ","+wd+")";    }    else    complain("unknown rule method %O\n",rule);    }    -  Shift|array ``+(array|Shift s) +  protected Shift|array ``+(array|Shift s)    {    if (!s) return this;    if (!arrayp(s)) s=({s});    return s+({this});    }       int ldayl_is_fix_l(int d1,int wd,int d2,int yn1,int yn2)    {    object y1=Year(yn1);    object y2=Year(yn2);