gpt4 book ai didi

delphi - 如何将 TDateTime 转换为 FILETIME?

转载 作者:行者123 更新时间:2023-12-02 02:13:56 26 4
gpt4 key购买 nike

标题说明了一切。互联网上有很多如何将 FILETIME 转换为 TDateTime 的示例,但反之则不然。

最佳答案

  1. System.SysUtils 调用 DateTimeToSystemTime
  2. Winapi.Windows 调用 SystemTimeToFileTime

如果您的原始日期时间值是本地时间,那么您需要在调用 DateTimeToSystemTime 之前将其转换为 UTC。

关于delphi - 如何将 TDateTime 转换为 FILETIME?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43888237/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com