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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Badi.pmod:15:    f_week_day_name_from_number="badi_week_day_name_from_number";    f_year_name_from_number="badi_year_name_from_number";    f_week_day_number_from_name="badi_week_day_number_from_name";       f_month_day_name_from_number="badi_month_day_name_from_number";    f_month_name_from_number="badi_month_name_from_number";    f_month_shortname_from_number="badi_month_shortname_from_number";    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)   {    // the beginning of the year is the day of the spring equinox    // leap years are those where an extra day is needed to get up to the next    // spring equinox.    // for now this rule is not in effect and the start of the year is march    // 21st. leap years are thus compatible with the gregorian calendar for the    // time being.
pike.git/lib/modules/Calendar.pmod/Badi.pmod:144:       return ({y,w,1,7,wjd+w*7});   // fixme   }      static int year_remaining_days(int y,int yday)   {    return 365+year_leap_year(y)-yday;   }    -  +    class cYear   {    inherit Gregorian::cYear;       int number_of_months()    {    return 19*n;    }   }