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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/ISO.pmod:4:      class Year   {    inherit Gregorian::Year;       int leap_day()    {    if (y>1999) return 31+29-1; // 29 Feb    return 31+24-1; // 24 Feb    } +  +  string name() +  { +  return (string)y;    } -  + }      class Week   {    inherit Gregorian::Week;       int yday()    {    return    ({0,-1,-2,-3,3,2,1})[this->year()->julian_day(0)%7]    +7*(w-1);