Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5939793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:52:40+00:00 2026-05-22T15:52:40+00:00

How do I output timezone offsets based on the list of regions present in

  • 0

How do I output timezone offsets based on the list of regions present in http://php.net/manual/en/timezones.php ?

Ideally, I would like it “arranged” in UTC-12:00 to UTC+12:00 format.

So,

America/New_York should generate UTC-4:00
UTC should be UTC
Asia/Damascus should be UTC+3:00
etc

It should match http://en.wikipedia.org/wiki/List_of_tz_database_time_zones in its output of course…


Q2: Is there some standardized order in which I can display this list? Of course, GMT-11 to GMT+12, but since many regions overlap, how should I be displaying those? All of these regions will be part of one dropdown:

(GMT-11:00) Pacific/Niue
(GMT-11:00) Pacific/Apia
(GMT-11:00) Pacific/Midway
(GMT-11:00) Pacific/Pago_Pago
(GMT-10:00) Pacific/Fakaofo
(GMT-10:00) Pacific/Rarotonga
(GMT-10:00) Pacific/Johnston
(GMT-10:00) Pacific/Tahiti
(GMT-10:00) Pacific/Honolulu
   [but what order should the above be in?]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:52:41+00:00Added an answer on May 22, 2026 at 3:52 pm

    Simply ordered by offset and then alphabetical. Would have preferred a more ‘geographic’ approach – but didnt find anything pointing out how to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The output of datetime.datetime.now() outputs in my native timezone of UTC-8. I'd like to
I have a table which stores the storecodes and their timezone. Now based on
I want to output the users system timezone, e.g. EST. How can I do
I'd like to be able to guess the user's timezone offset and whether or
How can I output postgresql dates with ISO 8601 -compliant timezones? e.g. I have
I have a table called Timezone and the data looks like: Call_ID Start_Time 93856
In Perl, how would one efficiently parse the output of unix's date command, taking
I'm trying to output the timezone of a ruby DateTime object: DateTime.parse('2012/05/23').strftime('%Z') This outputs
I have a ISO8601 date that contains a timezone offset (see below). When I
I'm getting odd output from the getDate() function. It's supposed to return a date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.