描述
SWbemDateTime对象的SetFileTime方法将字符串FILETIME格式的日期转换为CIM日期时间格式。
FILETIME格式是一个64位的日期时间结构,代表了1601年1月1日以来的100纳秒单位数。Windows Management Instrumentation(WMI)将FILETIME值视为无符号64位数字的字符串表示形式。
PowerBASIC 语法
METHOD SetFileTime ( _ BYVAL strFileTime AS WSTRING, _ OPTIONAL BYVAL bIsLocal AS INTEGER _ ) |
参数
strFileTime
BSTR.FILETIME用于设置对象的值。
bIsLocal
VARIANT_BOOL.如果TRUE,strFileTime被解释为本地时间。协调世界时(UTC)属性包含转换为正确的UTC偏移量的本地时间。当bIsLocal为FALSE时,strFileTime直接转换为UTC值,偏移量为0(零)。
OBJRESULT
错误(名称/十进制/十六进制) |
含义 |
wbemErrInvalidSyntax -2147217375 &H80041021 |
strFileTime的格式无效。 |
要求
客户 |
需要Windows Vista或Windows XP。 |
服务器 |
需要Windows Server 2008或Windows Server 2003。 |
类型库 |
使用Wbemdisp.tlb。 |
头 |
Wbemdisp.inc, |
DLL |
需要Wbemdisp.dll。 |