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.5 2000/10/21 06:28:15 nilsson Exp $ + // $Id: mkrules.pike,v 1.6 2000/11/08 22:38:41 hubbe 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:195:    }       int ldayl_is_fix_l(int d1,int wd,int d2,int yn1,int yn2)    {    object y1=Year(yn1);    object y2=Year(yn2);    int yjd,leap;       yjd=y1->julian_day();    leap=y1->leap_year(); -  int d1=LDAYL(d1,wd); +  d1=LDAYL(d1,wd);       yjd=y2->julian_day();    leap=y2->leap_year(); -  int d2=FIX_L(d2); +  d2=FIX_L(d2);       return d1==d2;    }       Shift try_promote(Shift t,int y0,int y1)    {   // this is year y0   // t is year y1    if (t==this_object()) return t; // same!    if (t->time!=time ||