Branch: Tag:

2019-02-06

2019-02-06 22:24:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar.mkrules: Increase INF_YEAR from 2050 to 2150.

Recent tzdata files (2018i) contain entries past 2050 (eg for Iran).

298:      // ---    - #define INF_YEAR 2050 + #define INF_YEAR 2150   #define NUL_YEAR 1850       int y1=(int)a[0] || NUL_YEAR;
388:    }    else if (y0==y1)    t+=" case "+y0+":\n"; -  else if (y1==2050) +  else if (y1 == INF_YEAR)    {    if (!my[NUL_YEAR]) t+=" case "+y0+"..:\n";    else t=replace(t,"½½½",(string)y0);