Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to calculate time zone.

 
vicky Aggarwal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15203
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have some example code where a time zone that looks like "37800" is used?
 
vicky Aggarwal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic