How to find GMT date/time by country name?

后端 未结 4 1987
既然无缘
既然无缘 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:32

    Not sure if this is what you are looking for but PEAR has a "Date" package available that has a nice example that seems to do what you are asking for.

    http://pear.php.net/manual/en/package.datetime.date.examples.php (scroll down to "Converting timezones")

提交回复
热议问题