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
Today, a strange problem has been encountered on the server side through C # get the current time for Fri 09:37:46 CST 2009, converted toGMT time: 01:37:46 GMT, that is, GMT time plus 8 hours equals the time indicated by CST, that thisCST is not
Problem description
Today, I encountered a strange problem. on the server side, the current time obtained through Java is Fri Aug 28 09:37:46 CST 2009, which is converted to GMT at: 28 Aug 2009 01:37:46 GMT, that is to say, the GMT time plus 8
Origin of the problemTimestamp conversion (timestamp: The total number of seconds from January 1, 1970 (00:00:00) to the current time. )#include #includeintMainintargcConst Char*argv[]) {time_t T; structTM *p; T=1408413451; P=gmtime (&t); Chars[
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
Date and Time functionsThis chapter discusses some functions that can be used to manipulate time values. See section 11.3, "Date and Time type" for valid formats for each time and date type with a range and a specified value.
The following example
Error page code: server in USA
Date_default_timezone_set ('prc'); // The time zone is set here.
$ Now_day = date ('L ');
$ Now_date = date ("Y/m/d ");
Echo "now_day =". $ now_day ."
";
Echo "now_date =". $ now_date ."
";
Echo time
From_unixtime () is the time function in MySQLDate is the parameter that needs to be processed (the parameter is a UNIX timestamp), can be a field name, or it can be a Unix timestamp stringThe following '%y%m%d ' is primarily the formatting of the
Time zone abbreviation UTC, CST, GMT, CEST and conversionUTC is an abbreviation for Coordinated Universal Time (Universal time coordinated), which is defined and recommended by the International Radio Advisory Committee and is maintained by the
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.