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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Gregorian.pmod:19:    f_week_day_number_from_name="gregorian_week_day_number_from_name";       f_month_day_name_from_number="month_day_name_from_number";    f_month_name_from_number="month_name_from_number";    f_month_shortname_from_number="month_shortname_from_number";    f_month_number_from_name="month_number_from_name";    f_week_name_from_number="week_name_from_number";    f_year_number_from_name="year_number_from_name";   }();    - static int year_leap_year(int y) + static int(0..1) year_leap_year(int y)   {    return (!(((y)%4) || (!((y)%100) && ((y)%400))));   }      // [y,yjd] - static array year_from_julian_day(int jd) + static array(int) year_from_julian_day(int jd)   {    int d=jd-1721426;       int century=(4*d+3)/146097;    int century_jd=(century*146097)/4;    int century_day=d-century_jd;    int century_year=(100*century_day+75)/36525;       return    ({