【发布时间】:2016-01-05 16:19:27
【问题描述】:
我有以下时间戳:1444288186967。
当我把它放在 Epoch Converter 中时,我得到了正确的结果 08 Oct 2015 07:09:46。
但是,当我使用(如 another post 中所述)function UnixToDateTime(const AValue: Int64): TDateTime 时,我得到 02 Sep 47737 11:02:47。很奇怪,不是吗?
我的代码(使用 TMS Aurelius)
Person.EndDate.Value := UnixToDateTime(FHit.TimestampUntil);
其中FHit.TimestampUntil 是Int64,正如UnixToDateTime 函数所期望的那样。
Person.EndDate.Value 是 TMS Aurelius 可为空的 TDateTime。
我怎么可能得到这样的日期?
【问题讨论】:
标签: delphi unix datetime time timestamp