In the process of international software project development, sometimes encounter some more special requirements. For example, you do a shopping site (assuming the server is placed in Shanghai, China), when the world's customers on your website
/* In flash, the date class manages the date and time information.
Current date. You can create a date object */
VaR now: Date = new date ();
Trace (now);/* output the current time and date in the format:
Sun Jul 27 19:45:57 GMT + 0800 2014 */
/*
In the process of developing international software projects, some special requirements are sometimes encountered. For example, you do a shopping site (assuming the server is in Shanghai, China), when customers all over the world on your site to buy
Today, using virtual machines to do experiments, ntpdate countless times, time or wrong. Finally found is the time zone setting is New YORK!!!Just record the way to modify the time zone.1. View your system time zoneMethod 1:[Email protected] ~]#
Problem: Different countries, the use of different time zones, and server code in the country, across time zone date, based on the date query, no data queryThe 1.mongodb stored new date () is the UTC time, which is the time of the 0 time zone, world
Time in the program
The process of time in the program is a big problem, I intend to write a separate article to comprehensively discuss this issue. "Date and time in procedure" chapter II timing and timing of the article, with the "date and time
UTC: Coordinated World Time (English: Coordinated Universal time, Law: Temps universel coordonné), also known as the World Unification Times, world standard Time, international coordination time. The abbreviations in English (CUT) and French (TUC)
PHP Tutorial Set the Date_default_timezone_set function ()
Definition and usage
The Date_default_timezone_set () function sets the default time zone for all date/time functions used in the script.
GrammarDate_default_timezone_set (TimeZone)
$
Php sets the Beijing time function date_default_timezone_set (). In the php Tutorial, set the definition and usage of the Beijing time function date_default_timezone_set () to the default time zone of all date and time functions in the script.
Time in the programThe processing of time in the program is a big problem. I plan to write a separate article to fully discuss this issue. This article is tentatively named "Date and time in the program" Chapter 2 timing and timing ", and" Date and
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.