Article View: comp.lang.java.programmer
Article #423Re: Days between GregorianCalendars
From: Ralph Brown
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
7 lines
1009 bytes
1009 bytes
How about just doing a getTime() on the start and end and then divide the difference by the number of milliseconds in a day? This doesn't account for leap seconds, but I don't believe the Calendar classes do either. Ralph
Technical Details
Message-ID:
<folw1.25$MX.496910@news-srv1.fmr.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35C07780.DF0F02D4@bigfoot.com> <35BFF39F.48935A9@sangacorp.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,14895c81839f4d37 X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,14895c81839f4d37 X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,14895c81839f4d37 X-Google-Attributes: gidf74b3,public From: "Ralph Brown" <localhost@fmr.com> Subject: Re: Days between GregorianCalendars Date: 1998/07/31 Message-ID: <folw1.25$MX.496910@news-srv1.fmr.com> X-Deja-AN: 376696834 References: <35C07780.DF0F02D4@bigfoot.com> <35BFF39F.48935A9@sangacorp.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Fidelity Investments NNTP-Posting-Date: Fri, 31 Jul 1998 11:28:11 EDT Newsgroups: comp.lang.java.programmer,comp.lang.java.help,borland.public.jbuilder.java.language