以日期字符串结尾的Z是什么?例如2014-01-01T00:00:00.588Z [英] What is the Z ending on date strings like 2014-01-01T00:00:00.588Z
问题描述
我正在执行抓取操作,以从Java中的数据库获取日期(日期应始终为 2014-01-01T00:00:00
)。我得到以下时间返回: 2014-01-01T00:00:00.588Z
。
Im doing a fetch to get a date from a database in java (the date should always be 2014-01-01T00:00:00
). I'm getting the following time returned: 2014-01-01T00:00:00.588Z
.
我的问题到底是什么 588Z
?并且这个数字会有所不同吗?检索是在不同的时区进行的吗?也就是说,数字588在不同的时区会是一个不同的数字。
My questions is, what is the "588Z
" at the end? and would this number be different the retrieve was done in a different timezone? i.e. would the number 588 be a different number in a different time zone.
谢谢我的帮助。
推荐答案
Z
代表零UTC偏移量。
如果时间是UTC,则在时间后直接添加一个Z,不带空格。
Z是UTC零偏移量的区域标记。
因此, 09:30 UTC表示为 09:30Z或 0930Z,而 14:45:15 UTC则表示为 14:45:15Z或 144515Z。
If the time is in UTC, add a Z directly after the time without a space.
Z is the zone designator for the zero UTC offset.
"09:30 UTC" is therefore represented as "09:30Z" or "0930Z", while "14:45:15 UTC" would be "14:45:15Z" or "144515Z".
Z $ c $之前的部分c>
转换为秒;在这里, 588
。
The portion immediately before the Z
translates into fraction of second; here, 588
.
从上面的问题中, 00:00:00.588
的意思是大约午夜十二点半,句点后的后三位是 588
,翻译为:毫秒。
From your question above, 00:00:00.588
means "about a half second past midnight", with the last three digits after the period, 588
, translating: milliseconds.
......更多详细信息此处 on( ISO 8601标准)。
... more details here on (ISO 8601 standard).
这篇关于以日期字符串结尾的Z是什么?例如2014-01-01T00:00:00.588Z的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!