amos@decwrl.dec.com (Amos Shapir) (07/03/89)
This is a strange choice of newsgroups... If you have a SUN workstation, and use 'calentool -hj' to determine dates of Jewish holidays, then the following bug fix may interest you. The next time this bug has any effect is in 1994, so you have 5 years to implement it. :-) *** datelib.c Thu Jun 22 15:07:23 1989 --- datelib.c.ORG Wed May 31 15:52:32 1989 *************** *** 1042,1048 btmp = (12 * atmp + 17) % 19; ctmp = atmp % 4; etmp = (1.55424180 * btmp) - (0.003177794 * atmp) ! + (ctmp / 4.0) + 32.04409316; dtmp = etmp; etmp = etmp - dtmp; /* day_of_week is not to be confused with the --- 1042,1048 ----- btmp = (12 * atmp + 17) % 19; ctmp = atmp % 4; etmp = (1.55424180 * btmp) - (0.003177794 * atmp) ! + (ctmp / 4) + 32.04409316; dtmp = etmp; etmp = etmp - dtmp; /* day_of_week is not to be confused with the -- Amos Shapir amos@nsc.com National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel Tel. +972 52 522261 TWX: 33691, fax: +972-52-558322 34 48 E / 32 10 N (My other cpu is a NS32532)