Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!bu-cs!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!stl!stc!datlog!gis From: gis@datlog.co.uk ( Ian Stewartson ) Newsgroups: comp.os.minix Subject: Date diffs Message-ID: <1206@dlvax2.datlog.co.uk> Date: 25 May 88 19:02:39 GMT Reply-To: gis@datlog.co.uk ( Ian Stewartson ) Organization: Data Logic Ltd, Queens House, Greenhill Way, Harrow, London. Lines: 27 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