Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

484
Views
Convert country-state code to time zone in Java

Having country-state code as input, is it possible to get the timezone using Java? For example us-tx -> (GMT-6)

Tried using this answer, however this method uses only the country code, without the state and the output is :

US/Alaska_US/Aleutian_US/Arizona_US/Central_US/East-Indiana_US/Eastern_US/Hawaii_US/Indiana-Starke_US/Michigan_US/Mountain_US/Pacific_US/Pacific-New_US/Samoa
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This isn't possible - in any language. Many US states have more than one time zone, depending on which part of the state you are referring to:

From Wikipedia:

Time Zones of the United States

You can clearly see on this map, many states where the time zone boundary does not follow the state boundary.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!