Branch: Tag:

2003-02-11

2003-02-11 15:59:58 by Johan Sundström <oyasumi@gmail.com>

Somewhat kludgy fix to make the Calendar format functions report the correct start date for certain boundary case weeks.

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.7
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.49
Rev: lib/modules/Calendar.pmod/testsuite.in:1.6

94:   static array(int) month_from_yday(int y,int yd)   {   // [month,day-of-month,ndays,month-year-day] +  if (yd<1) return ({12,31+yd,32,335+year_leap_year(y-1)});    int l=year_leap_year(y);    if (yd<32) return ({1,yd,31,1});    yd-=l;