File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to calculate time zone. 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 » Beginning Java
Bookmark "How to calculate time zone." Watch "How to calculate time zone." New topic
Author

How to calculate time zone.

vicky Aggarwal
Ranch Hand

Joined: May 15, 2009
Posts: 40
Hi,

First of all I am sorry if this is not right place for this query.

I saw in some programs that time zone is set as some integer numbers like 37800, 34xxx.

Here how we calculate these time zones and what is significance of them.

Thanks in advance.
Mahendra Suda
Greenhorn

Joined: Apr 22, 2011
Posts: 18
Hi,

You can find in which time zone your are. how to calculate time zone, you can refer http://www.java-connect.com/date/SimpleDateFormat-RFC-822-Time-Zone-Example.html


http://www.java-connect.com
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868
    
  10

Do you have some example code where a time zone that looks like "37800" is used?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
vicky Aggarwal
Ranch Hand

Joined: May 15, 2009
Posts: 40
I cracked it...
i didn't get the source code which was using it.
It was no of seconds which differ from GMT.
If timezone is GMT +1 it's value will be 3600.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to calculate time zone.
 
Similar Threads
XP time zone mapping with java time zones
time zones
Timezone problem
Timestamp
GMT to EDT