请教:delphi有么有精确到毫秒的时间戳?

learning8899 learning8899 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
查help,DateTimeToUnix只能精确到秒,请问各位朋友,有没有精确到毫秒的时间戳函数?

Converts a TDateTime value into a Unix/Linux-style date-and-time value.

Unit

DateUtils

Category

measurement conversion routines

Delphi syntax:

function DateTimeToUnix(const AValue: TDateTime): Int64;

C++ syntax:

extern PACKAGE __int64 __fastcall DateTimeToUnix(const System::TDateTime AValue);

Description

Call DateTimeToUnix to convert a TDateTime value the corresponding Unix/Linux encoding of the same date and time.

Unix/Linux date-and-time values are encoded as the number of seconds since midnight at the start of January 1, 1970.
...全文
评论 7
收藏 已收藏
分享
返回顶部