标签:span cto .com nbsp convert ict app ret false
timestamp的构造函数,把微妙作为纳秒存储,
所以 Java.util.date.comepareTo(Timestamp) 结果肯定是1
另外,?Timestamp.equal(object) 如果参数不是Timestamp,肯定返回false。
Timestamp‘s nanos value is NOT the number of nanoseconds - it‘s ananosecond-resolution number of millis (i.e. fractional seconds).As such, in the Timestamp constructor, it is setting the time onthe super to be without milliseconds. Therefore, the Timestamp willalways have a lower value for the member fastTime (used in Date‘scompareTo()) than the corresponding Date (unless, of course, it hasno fractional seconds).
标签:span cto .com nbsp convert ict app ret false
原文地址:http://www.cnblogs.com/sdfczyx/p/6396702.html