好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

php 北京时间怎么转utc

php北京时间转utc的方法:首先创建一个PHP示例文件;然后通过“$time = 时间戳-8*60*60;$startUtc = date('c',$time );”语句实现北京时间转utc时间即可。

本文操作环境:Windows7系统、PHP7.1、Dell G3电脑。

php 北京时间转utc时间

代码如下:

$time = 时间戳-8*60*60;
$startUtc = date('c',$time );

【推荐:PHP视频教程】

以上就是php 北京时间怎么转utc的详细内容!

查看更多关于php 北京时间怎么转utc的详细内容...

  阅读:43次