[Advanced-java] Daylight saving
dharmendra.sharan@ubs.com
dharmendra.sharan at ubs.com
Thu Jul 17 16:36:52 2003
Hi Venkat,
I think what you are lookng for is the DST_OFFSET value for a given Calendar set to the TimeZone in which you are interested.
Java doc snippet says...
DST_OFFSET
public static final int DST_OFFSET
Field number for get and set indicating the daylight savings offset in milliseconds.
This field reflects the correct daylight saving offset value of the time zone of this Calendar if the TimeZone implementation subclass supports historical Daylight Saving Time schedule changes
Hope this helps,
Regards,
Dharmendra
ps: have a good day!
-----Original Message-----
From: advanced-java-bounces@lists.xcf.berkeley.edu
[mailto:advanced-java-bounces@lists.xcf.berkeley.edu]On Behalf Of
K.P.Venkatakrishnan
Sent: Thursday, July 17, 2003 7:16 AM
To: advanced-java@lists.xcf.berkeley.edu
Subject: RE: [Advanced-java] Daylight saving
Yes, I have used them. What I want is the dates and not the duration of
fwd/bwd switch.
Regards,
Venkat.
-----Original Message-----
From: advanced-java-bounces@lists.xcf.berkeley.edu
[mailto:advanced-java-bounces@lists.xcf.berkeley.edu] On Behalf Of Jukka
Sundberg
Sent: Thursday, July 17, 2003 2:47 PM
To: advanced-java@lists.xcf.berkeley.edu
Subject: Re: [Advanced-java] Daylight saving
Have you checked super class methods for SimpleTimeZone,
For example, TimeZone.getTimeZone("GMT-8").getID() returns
"GMT-08:00".
and also method
getDSTSavings()
K.P.Venkatakrishnan wrote:
> Hi,
>
> Is it possible to get the forward and backward switching
> 'dates' for a given timezone using Java.
>
> SimpleTimeZone doesn't seem to provide this. We can only
set
> the rules for the timezone (not even
>
> get/read the rule of a timezone) and verify whether a date falls in
DST
> or not.
>
>
>
> Thanks and regards,
>
> Venkat.
>
>
**************************Disclaimer************************************
>
> Information contained in this E-MAIL being proprietary to Wipro
Limited is
> 'privileged' and 'confidential' and intended for use only by the
individual
> or entity to which it is addressed. You are notified that any use,
copying
> or dissemination of the information contained in the E-MAIL in any
manner
> whatsoever is strictly prohibited.
>
>
************************************************************************
***
>
_______________________________________________
Advanced-java mailing list
Advanced-java@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
**************************Disclaimer************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged' and 'confidential' and intended for use only by the individual
or entity to which it is addressed. You are notified that any use, copying
or dissemination of the information contained in the E-MAIL in any manner
whatsoever is strictly prohibited.
***************************************************************************
_______________________________________________
Advanced-java mailing list
Advanced-java@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
Visit our website at http://www.ubs.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.