This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 14074
    
  16

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
GMT to EDT
Timestamp
time zones
XP time zone mapping with java time zones
Timezone problem