Branch: Tag:

1998-01-19

1998-01-19 00:16:23 by Marcus Comstedt <marcus@mc.pp.se>

Some changes to facilitate subclassing for calendars such as Julian.

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.4

133:    {    if (!sizeof(arg))    { -  mapping t=localtime(time()); -  y=1900+t->year; +  object yp=vDay()->year(); +  y=yp->y;    }    else    y=arg[0];
331:    {    if (!sizeof(arg))    { -  mapping t=localtime(time()); -  y=1900+t->year; -  m=t->mon+1; +  object mp=vDay()->month(); +  y=mp->y; +  m=mp->m;    }    else    {
745:       int julian_day()    { -  return vYear(y)->julian_day()+d; +  return vYear(y)->julian_day(d);    }       int year_day()