Branch: Tag:

2006-01-06

2006-01-06 16:12:29 by Martin Bähr <mbaehr@email.archlab.tuwien.ac.at>

make constants to figure out %y modifiable by subclasses without requiring to
rewrite parse() so that other calendars can get something meaningful for %y

Rev: lib/modules/Calendar.pmod/Badi.pmod:1.2
Rev: lib/modules/Calendar.pmod/FAQ:1.9
Rev: lib/modules/Calendar.pmod/YMD.pike:1.12

22:    f_month_number_from_name="badi_month_number_from_name";    f_week_name_from_number="week_name_from_number";    f_year_number_from_name="badi_year_number_from_name"; +  dwim_year=([ "past_lower":0, "past_upper":0, +  "current_century":0, "past_century":0 ]); +    }();      static int year_leap_year(int y)
151:    return 365+year_leap_year(y)-yday;   }    -  +    class cYear   {    inherit Gregorian::cYear;