Article View: borland.public.jbuilder.java.language
Article #17787Daylight savings
From: Arty Tsaturov
Date: Thu, 01 Oct 1998 00:00
Date: Thu, 01 Oct 1998 00:00
6 lines
846 bytes
846 bytes
I am using java.util.TimeZone.getOffset() to find out the offset between local time and Greenwich. I am running it on Eastern Time host. I assume if I enter time within Daylight savings period (from first Sunday in April to last Sunday in October) the Offset should be 4 hours. At regular period Offset should be 5 hours. I am always getting 5 hours.
Technical Details
Message-ID:
<3613E932.2E0C@cscmail.csc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,304325b1ccca8cc0,start X-Google-Attributes: gidf74b3,public From: Arty Tsaturov <atsaturo@cscmail.csc.com> Subject: Daylight savings Date: 1998/10/01 Message-ID: <3613E932.2E0C@cscmail.csc.com> X-Deja-AN: 396811638 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language