Recently, I fixed a cross-Time Zone bug in the project. To fix this bug, it really takes a lot of effort. It seems that the main reason is that the development tasks do not involve this concept in normal times, and the test case for testing the
UTC time & local time (1)
The whole earth is divided into twenty-four time zones, each of which has its own local time. For international radio communication, a unified time is used for the sake of unification, called Universal coordination Time
Each region has its own local time, and the time conversion problem on the Internet and radio communication is particularly prominent. Record here for memo.
The whole earth is divided into twenty-four time zones, each of which has its own local
Detailed description of the JavaScript UTC time conversion method, javascriptutc
I. Preface1. UTC: Universal Time Coordinated, coordinates the Universal Time.2. Greenwich Mean Time (GMT)Greenwich Mean Time (GMT) refers to the standard Time of the
1.UTC Time and GMT time
We can think of GMT as time Coordination Time (GMT=UTC), GMT and UTC time are calculated in seconds.
2.UTC Time and Local
UTC + time Zone difference = local time
Time zone Chadong is positive, West is negative. Here, the
PHP cross-Time Zone (UTC time) application solution. 1. set the internal time zone of the program to UTC time. (UTC can also be called GMT) PHP settings: date_default_timezone_set (UTC); Yii settings: add timeZoneUTC to configmain. php.
1. set the
One, local time and UTC timelocal timeEach region of the world has its own local time, the entire earth is divided into 24 time zones, each time zone has its own local time.UTC timeIn international radio communications, a standard time is commonly
Analyze problems
UTC is actually the Greenwich Mean Time (GMT). It is measured at 0 degrees longitude. The local time in each region has a fixed time difference with UTC time, the local time in those regions is the effect of UTC time, time
First, preface 1, utc:universal time coordinated, coordinate the world. 2, GMT (GMT) Greenwich Mean Time (Greenwich Mean time,gmt) is the standard time for the Royal Greenwich Observatory, located in the suburbs of London, Because the
1. Set the program's internal time zone to UTC time. (UTC can also be called GMT)
PHP Settings:
Date_default_timezone_set ("UTC");
Yii settings:
Added in config/main.php: ' timeZone ' = ' UTC ',
When this is set, the time that PHP generates is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.