Adjusting time zone in PHP with DateTime / DateTimeZone

前端 未结 3 1673
粉色の甜心
粉色の甜心 2020-12-03 16:35

There\'s a lot of info on doing time zone adjustments in PHP, but I haven\'t found an answer for specifically what I want to do due to all the noise.

Given a time in

3条回答
  •  忘掉有多难
    2020-12-03 16:42

    Simply minus the first time from the second.

    That you'll be able to get the time difference in terms of seconds.

提交回复
热议问题