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 994861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:38:02+00:00 2026-05-16T06:38:02+00:00

I was wonder what is the maximum length of the timezone settings in PHP?

  • 0

I was wonder what is the maximum length of the timezone settings in PHP? I’m storing the string in a database, and would like to keep the length as short as possible, but i see timezones like “Canada/East-Saskatchewan”, which goes beyond our current limit.

If I could just get a list of all the supported timezone string, I can sort them, but they are currently split on to several different pages.

linky: http://www.php.net/manual/en/timezones.php

  • 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-16T06:38:02+00:00Added an answer on May 16, 2026 at 6:38 am

    Edit June 2021 Answer is 64. Why? That’s the width of the column used in MySQL to store those timezone name strings.

    The zoneinfo database behind those time zone strings just added new prefixes. To America/Argentina/ComodRivadavia, formerly the longest timezone string, they added posix/America/Argentina/ComodRivadavia and right/America/Argentina/ComodRivadavia, both with a length of 38. This is up from 32, the previous longest string.

    And here is the complete PHP code to find that:

    <?php
    $timezone_identifiers = DateTimeZone::listIdentifiers();
    
    $maxlen = 0;
    foreach($timezone_identifiers as $id)
    {
        if(strlen($id) > $maxlen)
            $maxlen = strlen($id);
    }
    
    echo "Max Length: $maxlen";
    
    /*
    Output:
    
    Max Length: 32
    
    */
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is not new, but I wonder how come java can assign something like,
I wonder whether someone has an idea for how to count combinations like the
Possible Duplicate: T-SQL WHERE col IN (…) What is the maximum size for a
I need to keep a short history of values. So I need a list
wonder if anyone can help - I thought I had solved this but i
I wonder how you guys manage deployment of a database between 2 SQL Servers,
I wonder why would a C++, C#, Java developer want to learn a dynamic
I wonder how long it would usually take for: Professional Average Beginner to setup
I wonder what the maximum number of max 3d distance is? I have set
I wonder wether it is feasible to implement an optimal string generator Class meeting

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.