Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: nsc!nsc.com!taux01!taux01.UUCP!amos@decwrl.dec.com (Amos Shapir) Newsgroups: comp.sys.sun Subject: Bug in calentool -hj Keywords: Software Message-ID: <81@brazos.Rice.edu> Date: 3 Jul 89 14:37:20 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 30 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 68, message 6 of 22 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)