【发布时间】:2016-08-05 14:41:13
【问题描述】:
我需要检查 fox 示例 2117-09-15 00:00:41.0。
我看到了类似的主题,但这个 var valid = (new Date(timestamp)).getTime() > 0;don't work.
【问题讨论】:
-
你能给我们更多的细节和一些代码吗?
-
我有一个 Timestamp createdDate = (Timestamp)employeeObject[4]; 类型的变量,在维护表单的同时我需要检查创建日期的值,否则我会收到错误 HTTP Status 500
-
Rahul Tripathi,2117-09-15 00:00:41.0.wrong,时间戳最大值 1970 年
-
@Александр:- 阅读specs:
ECMAScript Number values can represent all integers from –9,007,199,254,740,992 to 9,007,199,254,740,992; this range suffices to measure times to millisecond precision for any instant that is within approximately 285,616 years, either forward or backward, from 01 January, 1970 UTC.
标签: javascript timestamp