随笔博文

日期时间字符串含义 YYYY-MM-DDTHH:mm:ss:sssZ(精确到毫秒级)

2022-11-29 12:55:15 michael007js 1956

1. 事情起因:

本人这久在关注一个地方域名( .ren,由于某些因素,此处用 来代表域名),

因域名已经过期,有打算抢注的意愿,就等域名注册机构删除后我来抢注册了。

( *.ren)
注册日期 2014年10月15日
到期日期 2017年10月30日
到期日期 10月30日

每天的查询记录:
2017.11.08 未删
2017.11.28 未删
2017.11.30 未删
2017.12.01 未删
2017.12.02 未删
2017.12.03 未删
2017.12.04 未删

无耐,()2017-12-05) 今早10点多一看,域名竟然被抢注册了。

2017.12.05 注册了

突然间这种失落啊。。。 关注这么久,竟然失之交臂了。。。
有点欲哭无泪,万念俱灰的感觉
(*.ren)

Updated Date:2017-12-04T18:07:57Z
Creation Date:2017-12-04T18:07:44Z
Registry Expiry Date:2018-12-04T18:07:44Z

换算成北京时间:
Updated Date:2017-12-05 02:07:57
Creation Date:2017-12-05 02:07:44
Registry Expiry Date:2018-12-05 02:07:44

折腾了下,突然明白了。原来是北京时间5号的凌晨2时左右抢注的啊.

哎,这久花的精力和时间白白浪费和。
期初一直没怎么留意和关注过域名展示的这种时间格式,(我也太孤陋寡闻了) 哎。
究其原因,还没有深刻理解 yyyy-MM-dd’T’HH:mm:ss.SSSZ 这种时间格式中的T和Z所表示的含义。

2. yyyy-MM-dd’T’HH:mm:ss.SSSZ 时间格式

下面来着重认识一下:

Date Time String Format

ECMAScript defines a string interchange format for date-times based upon a simplification of the ISO 8601 Extended Format. The format is as follows: YYYY-MM-DDTHH:mm:ss.sss*Z*

Where the fields are as follows:

YYYY is the decimal digits of the year 0000 to 9999 in the Gregorian calendar.
- "-" (hyphen) appears literally twice in the string.
MM is the month of the year from 01 (January) to 12 (December).
DD is the day of the month from 01 to 31.
T "T" appears literally in the string, to indicate the beginning of the time element.
HH is the number of complete hours that have passed since midnight as two decimal digits from 00 to 24.
: ":" (colon) appears literally twice in the string.
mm is the number of complete minutes since the start of the hour as two decimal digits from 00 to 59.
ss is the number of complete seconds since the start of the minute as two decimal digits from 00 to 59.
. "." (dot) appears literally in the string.
sss is the number of complete milliseconds since the start of the second as three decimal digits.
"Z" is the time zone offset specified as “Z” (for UTC) or either “+” or “-“ followed by a time expression HH:mm

图片关键词

上面这个时间格式就是带T和Z这种是ISODATE .

首页
关于博主
我的博客
搜索