How to get different timezones' current time in PHP?

后端 未结 1 638
逝去的感伤
逝去的感伤 2021-01-27 05:39

Unfortunately I\'m not using PHP 5. On the documentation of the date function it has a timezone section which lets you specify the difference from the GMT tome. How can you use

1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-27 06:06

    You can convert times to different timezones by using the PEAR Date package http://pear.php.net/package/Date

    Examples here http://pear.php.net/manual/en/package.datetime.date.examples.php

    0 讨论(0)
提交回复
热议问题