How to find GMT date/time by country name?

后端 未结 4 1979
既然无缘
既然无缘 2020-12-14 04:03

How can I find country name -> GMT date/time to that I can do like following:

Example:

$datetime = new GMT_search(\'America\');  //output: 2010-01-01         


        
4条回答
  •  天命终不由人
    2020-12-14 04:17

    Here you'll find the complete list of timezones supported by PHP, which are meant to be used with e.g. date_default_timezone_set(). Support for countries with multiple timezones is also convenient to look up. Take the example of the American region.

    
    

    The list is a complete timezones supported by PHP, which are meant to be used with e.g. date_default_timezone_set().

提交回复
热议问题