The difference between CST and GMT time

Source: Internet
Author: User
Tags cst time time zones

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 to
GMT time: 01:37:46 GMT, that is, GMT time plus 8 hours equals the time indicated by CST, that this
CST is not Beijing, because we are in the East eight district.

Everything looks normal, but there's a problem with the client parsing the time with javascript:
Fri 23:37:46 gmt+0800
New Date (' Fri 09:37:46 CST '). toString ();

It's strange that the time between GMT and CST is exactly 14 hours apart.



Baidu a bit

To find this article, the question has been very clear.

GMT (Greenwich Mean time) stands for GMT, as we all know.
CST can also represent the following 4 different time zones:
Central Standard Time (USA) ut-6:00
Central Standard Time (Australia) ut+9:30
China Standard Time ut+8:00
Cuba Standard Time ut-4:00

It can be seen that CST could also represent the standard time in four countries of the United States, Australia, China, and Cuba.

The previously mentioned CST time obtained through Java is in China, while client-side JavaScript defaults to the U.S.
The central time.

So the Fri 09:37:46 CST 2009 plus 6 hours, plus 8 hours, is equal to Fri 28 2009 23:37:46
gmt+0800

It can be seen that in future programming in order to avoid errors, or do not use CST time, and try to use GMT time

This article from "There is nothing, know in Providence" blog, please be sure to keep this source http://yangsj.blog.51cto.com/8702844/1793245

The difference between CST and GMT 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.