Branch: Tag:

2000-10-26

2000-10-26 15:23:47 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

added Events.tzshift, a mechanism to figure out when a timezone shifts

Rev: lib/modules/Calendar.pmod/Event.pmod:1.10
Rev: lib/modules/Calendar.pmod/Events.pmod:1.7
Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.14

361:   // Don't load Geogrphy.Countries unless we have to   object country_lookup=0;    - Event|Event.Namedays magic_event(string s) + Event.Event|Event.Namedays magic_event(string s)   {    Event.Event e;    if ( (e=loaded_events[s]) ) return e;
376:    object c=country_lookup->from_name(s);    if (c && (e=find_region(lower_case(c->iso2)))) return e;    +  if (s=="tzshift") +  return loaded_events->tzshift=Event.TZShift_Event();       return ([])[0];   }