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.8 2003/03/12 19:44:37 nilsson Exp $ + // $Id: mkrules.pike,v 1.9 2003/08/07 14:20:19 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:840:    static int offset_to_utc;    string name;       static function(string:string) tzformat;    static array names;       static void create(int offset,string _name)    {    offset_to_utc=offset;    name=_name; -  if (search(name,\"/\")!=-1) +  if (has_value(name, \"/\"))    {    names=name/\"/\";    tzformat=lambda(string s)    {    if (s==\"\") return names[0]; else return names[1];    };    }    else    tzformat=lambda(string s) { return sprintf(name,s); };    }