Global 24 time Zones Division
The World Time Zone table, which can display time and place names in each of the world's time zones, is more sophisticated and complex than the two-way timetable, and usually the world time zone table's dial will mark
JavaScript Time Format Conversion Summary1. Current system locale format (tolocaledatestring and tolocaletimestring)Example: (new Date ()). toLocaleDateString () + "" + (new Date ()). toLocaleTimeString ()Results: January 29, 2008 16:13:112.
The time in PHP has two formatting functions: Date () and gmdate (), which are described in the official document as follows:
Date-format a local time/date
Gmdate-format a gmt/UTC date/time and return the Greenwich Mean Time (GMT ).
For example, if
After obtaining the time through the date () function, it is found that the hour time is incorrect, which is 8 hours less than the current time. Both H and h are the same, this is because the Greenwich Mean Time is obtained, which is 8 hours
JS Time zone function:Set Datename to a Date object created====================Datename.gettimezoneoffset ()--Gets the difference between local time and GMT time (GMT) and returns the value in minutes====================For example: Obtain GMT time
Linux time zone details and common time functions time and time zone The entire earth is divided into 24 time zones, each time zone has its own local time. ø UTC Time and GMT time We can think of Greenwich Mean Time (GMT = UTC), GMT and
Time zone DivisionThe whole earth is divided into 24 time zones, each time series has its own local time. At the same time, the local time in each time zone varies by 1 to 23 hours. For example, the local time in London is 8 hours different from
Js time zone functions:
Set datename to a created Date object
================================Datename. getTimezoneOffset ()-- Get the difference between the local time and GMT time (Greenwich Mean Time). The return value is in minutes.==============
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.