How to get the names and abbreviations of a time zone in PHP?

前端 未结 5 1144
再見小時候
再見小時候 2020-12-16 14:31

Starting with a time zone identifier, such as \"America/Los_Angeles\", how do you find the names and abbreviations of that time zone in PHP? For example:

<
5条回答
  •  悲哀的现实
    2020-12-16 15:06

    Hope this will help you

    setTimeZone(new DateTimeZone('America/Havana'));
    echo $dateTime->format('T');
    ?>
    

提交回复
热议问题