gis@datlog.co.uk ( Ian Stewartson ) (05/26/88)
The diffs for cmd/date.c as promised in my earlier article. **** DIFFS for cmd/date.c **** 71,72c71 < if (((tm.year + 2) % 4) == 0) < days_per_month[1]++; --- > days_per_month[1] = (((tm.year + 2) % 4) == 0) ? 29 : 28; 120,121c119 < if (((tm.year + 2) % 4) == 0) < days_per_month[1]++; --- > days_per_month[1] = (((tm.year + 2) % 4) == 0) ? 29 : 28; 125c123,125 < ct += days_per_month[len++] * s_p_day; --- > { > ct += days_per_month[len++] * s_p_day; > } 130,131d129 < if (days_per_month[1] > 28) < days_per_month[1] = 28; **** END OF DIFFS for cmd/date.c **** Ian Stewartson Data Logic Ltd, Queens House, Greenhill Way, Harrow, Middlesex, HA1 1YR, UK. (Phone) +44 1 863 0383 (Telex) 888103 (Fax) +44 1 861 2010 (Network) gis@datlog.co.uk or ukc!datlog!gis