Article View: borland.public.jbuilder.java.api
Article #1188Re: Probelem with Date and daylight savings
From: R.F. Pels
Date: Wed, 24 Apr 2002 13:15
Date: Wed, 24 Apr 2002 13:15
14 lines
1166 bytes
1166 bytes
Hanan Hermon wrote:
> I'm using the following code:
> System.out.println(""+new Date());
>
> Surprisingly the output is not correct. ( if the time is 10:00 then the
> output is 11:00 ).
Read the javadoc associated with java.util.Date. Try toLocaleString() and
toGMTString() and see what happens.
--
Ruurd
Technical Details
Message-ID:
<3cc6aff3_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3cc66f49_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,78729ebe20306c09 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-04-24 06:24:32 PST Message-ID: <3cc6aff3_1@dnews> From: "R.F. Pels" <ruurd@acklin.nl> Subject: Re: Probelem with Date and daylight savings Newsgroups: borland.public.jbuilder.java.api Date: Wed, 24 Apr 2002 15:15:25 +0200 References: <3cc66f49_2@dnews> Lines: 14 Organization: Acklin B.V. User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit NNTP-Posting-Host: 213.51.58.136 X-Trace: dnews 1019654131 213.51.58.136 (24 Apr 2002 06:15:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews