File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Need TimeZone data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Need TimeZone data" Watch "Need TimeZone data" New topic
Author

Need TimeZone data

Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Hello All,

I need the timezone details of all possible time zones, I need following things.
- TImezone name
- Offset with respect to GMT
- does it support day light saving
- Offset considering if it supports day light savings

I basically need all this informtion and have to create a table in database, i check out Timezone API in jdk
but does not seem to be of help.

Any pointers how do i get it?

Thanks,
Manish Ramrakhiani
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Googled it and the first entry gave me this.

http://www.exampledepot.com/egs/java.util/GetAllZones.html



Check it out. Hope it's what you want.


>
Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Thanks Sridhar.

Actually I was searching it If it was possible to get directly through SQL, hence did not pay much attention to get it from java.
However I still need one more detail.

If timezone supports day light saving then what will be the offset while it is enabled?

Thanks again.

Thanks,
Manish Ramrakhiani
Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Any help guys, Need it urgently.

How do I get this detail:
If timezone supports day light saving then what will be the offset while it is enabled?

Thanks,
Manish Ramrakhiani

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16482
    
    2

Manish Ramrakhiani wrote:Any help guys, Need it urgently.


Read this: EaseUp. Really, if it's urgent then instead of waiting for an answer here you could look it up in the API documentation. For which the link is here: TimeZone.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8430

Manish Ramrakhiani wrote:Any help guys, Need it urgently.

Dude, EaseUp

Have you looked at the Java API docs for TimeZone? Does it have any method which will return the offset for a particular date? Does it take into account the DST?
Please ShowSomeEffort

PS. Darn. Paul beat me to it while I was searching for those links.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Sorry for the trouble guys,but somehow missed it.

Will take care for sure going forward.
Sorry and thanks again.

Thanks,
Manish Ramrakhiani
 
I agree. Here's the link: jrebel
 
subject: Need TimeZone data
 
Similar Threads
what is day light saving time?
TimeZone Conversion
TimeZones
Passing java dates timestamp to Javascript's date object
Does Java TimeZone takes care of daylight savings?