Path: utzoo!yunexus!maccs!gordan From: gordan@maccs.McMaster.CA (gordan) Newsgroups: comp.lang.c Subject: Re: Date Coversion Routines Keywords: source, julian date Message-ID: <1508@maccs.McMaster.CA> Date: 20 Oct 88 01:09:30 GMT Article-I.D.: maccs.1508 References: <5522@hoptoad.uucp> <44100014@hcx2> <7618@rpp386.Dallas.TX.US> <1483@maccs.McMaster.CA> <483@midgard.mn.org> Reply-To: gordan@maccs.UUCP () Organization: Worldwide Phlogiston Cartel Lines: 19 In article <483@midgard.mn.org> dal@syntel.UUCP (Dale Schumacher) writes: -In article <1483@maccs.McMaster.CA> gordan@maccs.UUCP () writes: -| -|The two functions are astonishingly short, using some sort of floating -|point trickery. They seemed to work when I tested them. Conversion to -|C is left as an exercise for the reader. - -I don't think floating point is required. I know that it isn't for the -formula that I have. I haven't compared the to closely enough (nor do I [code omitted] Yes, but the code you supply only does D/M/Y --> JD, not vice versa. Believe it or not, there's a one-line Fortran statement that does D/M/Y --> JD, which was also published in Sky & Telescope in 1984. Actually it was the "vice versa" routine (JD --> D/M/Y) that did the floating point.