delphi格式化Wmi中的DateTime


本文整理自网络,侵删。

 
通过定义该函数进程转换:
use ComObj,ActiveX,Variants;

function  WmiDateToTDatetime(vDate : OleVariant) : TDateTime;
var
  FWbemDateObj  : OleVariant;
begin;
  FWbemDateObj  := CreateOleObject('WbemScripting.SWbemDateTime');
  FWbemDateObj.Value:=vDate;
  Result:=FWbemDateObj.GetVarDate;
end;
原文
https://stackoverflow.com/questions/22254962/delphi-date-time-conversion?lq=1

相关阅读 >>

Delphi xe3中使用tidftp的示例

Delphi tms web core 通过url 传递参数

Delphi获取其他进程中listbox和combobox的内容

Delphi汉字与多字节编码的转换

Delphi 临时文件路径(支持安卓、ios)

Delphi 实现窗口记住关闭时的坐标位置

Delphi 10.2 新特性之―tfdbatchmovejsonwriter

Delphi共享软件防破解的实用招法

Delphi调用http接口上传文件

Delphi extctrls.frame3d

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...