Article View: comp.lang.java.programmer
Article #425Re: Days between GregorianCalendars
From: Allan Wax
Date: Tue, 04 Aug 1998 00:00
Date: Tue, 04 Aug 1998 00:00
22 lines
1415 bytes
1415 bytes
Dag Welinder wrote:
>
> Hello!
>
> Is it possible to compute the number of days between two dates? I have
> two instances of GregorianCalendar, each containing a date. Can I
> compute the number of days between these two dates?
>
> Regards, Dag Welinder
Get ACM's Collected Algorithm 199, recode it in Java (I did, took about
30 minutes), compute the Julian date for each end point, subtract the
two numbers, viola!
--
<------------------------------------------->
Allan Wax
e-mail: Allan.Wax@jpl.nasa.gov
FAX: + (213) 935-9292
NOTE: The views expressed in this message are
my own and do not necessarily reflect
those of my employer.
Technical Details
Message-ID:
<35C7A467.26132356@jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35C07780.DF0F02D4@bigfoot.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,14895c81839f4d37 X-Google-Attributes: gidf74b3,public X-Google-Thread: 10a146,14895c81839f4d37 X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,14895c81839f4d37 X-Google-Attributes: gid113ae9,public From: Allan Wax <Allan.Wax@jpl.nasa.gov> Subject: Re: Days between GregorianCalendars Date: 1998/08/04 Message-ID: <35C7A467.26132356@jpl.nasa.gov> X-Deja-AN: 377990605 Content-Transfer-Encoding: 7bit References: <35C07780.DF0F02D4@bigfoot.com> Content-Type: text/plain; charset=us-ascii Organization: Jet Propulsion Laboratory Mime-Version: 1.0 Newsgroups: comp.lang.java.programmer,comp.lang.java.help,borland.public.jbuilder.java.language