aspose file tools*
The moose likes Java in General and the fly likes Timezones Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Timezones" Watch "Timezones" New topic
Author

Timezones

Adam Teg
Ranch Hand

Joined: Jul 10, 2007
Posts: 58
Not sure if my question qualifies as intermediate but here goes -

I want to get a time zone that will return CET or CEST. When I do the code below today I get CET but it should have given me CEST. What is up?

TimeZone.getTimeZone("Europe/Paris")

I want a time zone that knows if the time is CET or CEST

Thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18121
    
    8

In what way do you "get" CET from that code?
Adam Teg
Ranch Hand

Joined: Jul 10, 2007
Posts: 58
It is actully working. My unit test had a winter date in it. Either way I get a calander instance; set the gmt timezone since that is timezone I am getting; do an offset with "Europe/Paris".

Thanks for your response
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timezones
 
Similar Threads
One More to the K&B Errata log...Ch 6 Dates related
up to Date() ?
timezone woes
Does jdk131-b24 has fix for DST 2007 ?
Daylight saving problem