Branch: Tag:

1998-01-27

1998-01-27 06:22:38 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

ISO calendar added, Gregorian week changed to sun-sat, Swedish inherits ISO to get real mon-sun weeks

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.6
Rev: lib/modules/Calendar.pmod/ISO.pmod:1.1
Rev: lib/modules/Calendar.pmod/Swedish.pmod:1.5

1: - inherit Calendar.Gregorian : christ; + inherit Calendar.ISO;      void create()   {
13:      class Week   { -  inherit Calendar.Gregorian.Week; +  inherit Calendar.ISO.Week;       string name()    {
23:      class Year   { -  inherit Calendar.Gregorian.Year; +  inherit Calendar.ISO.Year;       string name()    {
31:    return (string)(1-this->number())+" fk";    return (string)this->number();    } -  -  int leap_day() -  { -  if (y>1999) return 31+29-1; // 29 Feb -  return 31+24-1; // 24 Feb +    } - } +