Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 1998 05:23:15 +0100 (MET)
From:      Jean-Marc Zucconi <jmz@FreeBSD.ORG>
To:        rjoe@sierrahill.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: getting julian date
Message-ID:  <199811090423.FAA18016@qix>
In-Reply-To: <199811090344.VAA02845@sierrahill.com> (message from Joe Schwartz on Sun, 8 Nov 1998 21:44:15 -0600 (CST))

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> Joe Schwartz writes:

 > Folks,
 > Is there a canned utility to echo out the julian date?

 > If not, anyone have somthing to get it?

julian_day =  (367*y-7*(y+(m+9)/12)/4+275*m/9+d+1721014);
y: year, m: month, d: day

Jean-Marc

-- 
 Jean-Marc Zucconi                    PGP Key: finger jmz@FreeBSD.ORG

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811090423.FAA18016>