Bug in calentool -hj
Amos Shapir
nsc!nsc.com!taux01!taux01.UUCP!amos at decwrl.dec.com
Tue Jul 4 00:37:20 AEST 1989
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 at 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)
More information about the Comp.sys.sun
mailing list