One JavaScript instance every day-UTC date and time, and javascript instance-utc

Source: Internet
Author: User
Tags time zones

One JavaScript instance every day-UTC date and time, and javascript instance-utc

<! DOCTYPE html> 


How does the getUTCDate () method of the Date object in JavaScript obtain the day of the Coordinated Universal Time?

GetUTCDate returns the Date value in the Global Standard Time (UTC) representation of the Date object.
GetDate returns the Date value of a month in the Date object expressed in the local time.

The author can search and coordinate the Universal Time on Baidu, which is described in detail.

As for the usefulness of js in obtaining time, it is much better to use js in interaction to obtain time than to use dynamic languages such as php, asp, and jsp, because the browser is equipped with a js interpreter, It is troublesome to use ajax or Dynamic Refresh to use those languages.

There is a statement in javascript to get the date of today, and there is a time year, but what is GMT? 1 Can someone tell me/

GMT is Greenwich Mean Time
GMT is the abbreviation of Greenwich Mean Time (GMT ).
Greenwich is a place on the south bank of the river banks in London. Since the 19th century, countries around the world have frequent exchanges, while continental Europe, Continental America, and continental Asia have their own time zones, to avoid chaos, representatives of various countries held an international conference in Washington, USA in 1884. Through an agreement, Greenwich Mean Time was elected as the central point of global time. A watch with the GMT function means that the hourly dial of the watch can display the GMT time.

Beijing time is GMT + 8 because it is 8 hours earlier than Greenwich Mean Time

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.