Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting country name from time zone

 
Dino Veer
Greenhorn
Posts: 5
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on getting data from twitter APIs(twitter4j). One problem is that sometimes I get only timezone like 'Pacific Time (US & Canada)'. Is there some way to get countryname using this info. One way can be to trim the timezone string from Pacific Time (US & Canada) to US & Canada. Any other way?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18012
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A time zone extends from pole to pole in a stretch covering an entire 1/24th area of the planet, subject to adjustments for national convenience. The "US & Canada" is simply an indication that the locale is set for the zone where a specific set of rules apply for base time offset from GMT and when Daylight Savings start and end. As a determinant of national boundaries, it's pretty useless. I live in a state that spans 2 separate zones, myself, and for a while I crossed the zone boundary on a regular basis.
 
K. Gil
Ranch Hand
Posts: 75
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is how I solved similar problem in the past:

GeoLite Free Downloadable Databases
http://dev.maxmind.com/geoip/geolite
These databases are offered in the same binary and csv formats

happy geoCoding
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic