File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to calculate time zone." Watch "How to calculate time zone." New topic

How to calculate time zone.

vicky Aggarwal
Ranch Hand

Joined: May 15, 2009
Posts: 40

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

Joined: Apr 22, 2011
Posts: 18

You can find in which time zone your are. how to calculate time zone, you can refer
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15036

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 8 API documentation
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:
subject: How to calculate time zone.
It's not a secret anymore!