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 (UTC, Universal Time
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
GMT is utc/gmt time, January 01, 1970 00:00 00 seconds (that is, utc+8 Beijing time January 01, 1970 08:00 00 seconds)The calculation code is as follows:
1 /**2 * Gets the number of seconds from the specified time to GMT3 * UTC: GMT January 01,
Beijing isGetzonetime(8), New York isGetzonetime(-5), Bangalore isGetzonetime(5.5). The offset value is the time zone difference in this time zone relative to Greenwich time zonefunctionGetzonetime (offset) {//take local time varLocalTime
About GMT and UTCFirst, IntroductionMany people know that the two-way schedule is referred to as GMT or UTC, and the World Time Zone table is referred to as universal, so what is the actual intent of GMT and UTC? How is the world time zone
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
Several computer time formats
1. filetime and systemtime formatsThe first time format I encountered was the filetime returned when the getfiletime function was used, which is a 64-bit (8-byte) structure. In the SDK documentation, the structure is
/* 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 */
/*
First, the computer time errorAs we all know, the computer host time is based on the computer crystal vibration at a fixed frequency oscillation, resulting in. Due to the different crystal oscillator, computer time and UTC time (Global Standard Time:
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.