Home > Backend Development > PHP Tutorial > 如何用date('c')格式获取东京时间

如何用date('c')格式获取东京时间

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:10:33
Original
1755 people have browsed it

怎么用date('c')格式获取东京时间?
现在服务器的时区是北京时区+08:00 请问怎么用date('c')2012-09-11T17:00:00+09:00格式获取东京时间+09:00?

------解决方案--------------------
date_default_timezone_set('Asia/Tokyo'); 
echo date('c'); //2012-10-04T17:16:38+09:00

PHP: 所支持的时区列表

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Compare JavaScript Date objects
From 1970-01-01 08:00:00
0
0
0
Select rows grouped by date
From 1970-01-01 08:00:00
0
0
0
Hive query: Convert date timestamp to date format
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template