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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkrules.pike:3:   // ftp://elsie.nci.nih.gov/pub/   // (timezone mailing list: tz@elsie.nci.nih.gov)   //   // source datafile are usually found somewhere around zic(8),   // if they exist in the system.   //   // Most systems only have compiled files, just like pike,   // and zic(8) is the usual compiler.      // pike mkrules.pike ../data/{africa,antarctica,asia,australasia,backward,etcetera,europe,northamerica,pacificnew,southamerica,systemv} - // $Id: mkrules.pike,v 1.10 2004/01/11 00:51:23 nilsson Exp $ + // $Id: mkrules.pike,v 1.11 2006/11/04 19:06:48 nilsson Exp $      #pike __REAL_VERSION__      object cal=Calendar.ISO->set_timezone("UTC");   function Year=cal->Year;   object nleapy=Year(1999);      object tzrules; // needed to make timezones, compiled below      mapping rules=([]);
pike.git/lib/modules/Calendar.pmod/mkrules.pike:390:    int lastoffset=0;    string res=" "*12+"return ({";    foreach (z,Shift s)    {    res+=s->dump(lastoffset,my)+("\n"+" "*21);    lastoffset=s->offset;    }    array resa=res/"\n";    resa[-2]=replace(resa[-2],", ","});");    -  t+=resa[..sizeof(resa)-2]*"\n"+"\n"; +  t+=resa[..<1]*"\n"+"\n";    s=t+s;    }    res+=(s+    " }\n"    " }\n"    "}\n\n");       return res;    }