UTC 日期时间范围
UTC datetime range
我想了解 UTC 日期时间的表示方式以及最大和最小范围是多少。 Mongodb 使用 UTC 日期时间表示日期。
例如:在MySQL中,日期时间占用8个字节,范围是:
1000-01-01 00:00:00:000000 至 9999-12-31 23:59:59:999999
来自 the MongoDB docs 用于表示日期时间的 BSON 日期数据类型:
BSON Date is a 64-bit integer that represents the number of
milliseconds since the Unix epoch (Jan 1, 1970). This results in a
representable date range of about 290 million years into the past and
future.
我想了解 UTC 日期时间的表示方式以及最大和最小范围是多少。 Mongodb 使用 UTC 日期时间表示日期。
例如:在MySQL中,日期时间占用8个字节,范围是:
1000-01-01 00:00:00:000000 至 9999-12-31 23:59:59:999999
来自 the MongoDB docs 用于表示日期时间的 BSON 日期数据类型:
BSON Date is a 64-bit integer that represents the number of milliseconds since the Unix epoch (Jan 1, 1970). This results in a representable date range of about 290 million years into the past and future.