UTC 与 GMT - Java 与 .Net
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4293308/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
UTC vs. GMT - Java vs. .Net
提问by Saar
In .Net UTC and GMT are not the same Difference between UTC and GMT Standard Time in .NET
在 .Net 中 UTC 和 GMT 不一样 .NET 中 UTC 和 GMT 标准时间的区别
Is it the same with Java? Does Java has the notion that GMT has DST changes while UTC doesnt?
和Java一样吗?Java 是否认为 GMT 有 DST 变化而 UTC 没有?
Thanks!
谢谢!
回答by Codemwnci
Daylight Saving Time and GMT is different. GMT is GMT, wherever and whenever.
夏令时和 GMT 是不同的。GMT 就是 GMT,无论何时何地。
GMT+0 is standard British Time
GMT+0 是标准英国时间
GMT+1 is BST (British Summer Time)
GMT+1 是 BST(英国夏令时)
回答by pstanton
As the documentation explains, GMT is equivalent to UT and the difference between UT and UTC is "is an invisibly fine hair to split". As Codemwnci explained, GMT will never have DST applied to it.
正如文档所解释的那样,GMT 相当于 UT,UT 和 UTC 之间的区别是“是一根看不见的细毛要分开”。正如 Codemwnci 解释的那样,GMT 永远不会应用 DST。
GMT and UTC will never have "Daylight Savings" or "Summer Time" applied to them.
GMT 和 UTC 永远不会应用“夏令时”或“夏令时”。
回答by Ignacio Vazquez-Abrams
You're misreading the other question. It's not "UTC vs. GMT", it's "UTC vs. GMT Standard Time".
你误读了另一个问题。这不是“UTC vs. GMT”,而是“UTC vs. GMT 标准时间”。