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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:933:    if (uq<=-step) uq=-(-uq%step);    z= z[..i-1]+    ({z[i]->set_size(step+uq,sec)})+    map(z[i+1..],"add",uq,sec);    }    else    {    if (uq>=step) uq%=step;    z= z[..i-1]+    ({z[i]->set_size(uq,sec)})+ -  map(z[i..sizeof(z)-2],"add",uq,sec); +  map(z[i..<1],"add",uq,sec);    i++;    }    uo=z[i]->utc_offset();    }    }    return z;    }      //! method Second second()   //! method Second second(int n)
pike.git/lib/modules/Calendar.pmod/YMD.pike:2581:    string whut,int ...args)   {    if (zonename=="") return 0;       if (zonename[0]=='"') sscanf(zonename,"\"%s\"",zonename);    sscanf(zonename,"%*[ \t]%s",zonename);       if(sizeof(zonename)==4 && zonename[2]=='S')    zonename = zonename[0..1] + zonename[3..3];    else if(sizeof(zonename)>4 && has_suffix(zonename, "DST")) -  zonename = zonename[..sizeof(zonename)-1-3]; +  zonename = zonename[..<3];       if (origin->rules->abbr2zone[zonename])    zonename=origin->rules->abbr2zone[zonename];       .Rule.Timezone zone=.Timezone[zonename];    if (!zone)    {    if (sscanf(zonename,"%[^-+]%s",string a,string b)==2 && a!="" && b!="")    {    TimeRange tr=dwim_zone(origin,a,whut,@args);