The CreatedTime property gets a Date value (DATE value in C++) that specifies the date and time in Coordinated Universal Time (UTC) when the array was created.
HRESULT get_CreatedTime( DATE* pdCreatedTime );
Pointer to a DATE that is set on return to the value specifying the date and time in Coordinated Universal Time (UTC) when the array was created.
This property method returns S_OK if the call is successful; otherwise, it returns an error code.
Property CreatedTime As Date
Date value that specifies the date and time in Coordinated Universal Time (UTC) when the array was created.
' Create the root object. Set root = CreateObject("FPC.Root") ' Declare the other objects needed. Dim isaArrays ' An FPCArrays collection Dim isaArray ' An FPCArray object ' Get references to the array object and ' the arrays collection. Set isaArrays = root.Arrays ' List the arrays and the date on which each was created. WScript.Echo "***Arrays***" For Each isaArray In isaArrays WScript.Echo isaArray.Name & ": " & DateToText(isaArray.CreatedTime) _ & " " & TimeToText(isaArray.CreatedTime) Next Private Function DateToText(timeStamp) Dim monthStr Dim yearStr Dim dayStr Dim dateVal dateVal = CDate(timeStamp) monthStr = AddZero(Month(dateVal)) dayStr = AddZero(Day(dateVal)) yearStr = CStr(Year(dateVal)) DateToText = yearStr & "-" & monthStr & "-" & dayStr End Function Private Function AddZero(theObj) If(Len(CStr(theObj)) < 2) Then AddZero = "0" & CStr(theObj) Else AddZero = CStr(theObj) End If End Function Private Function TimeToText(timeStamp) Dim hourStr Dim minStr Dim secStr Dim dateVal dateVal = CDate(timeStamp) hourStr = AddZero(Hour(dateVal)) minStr = AddZero(Minute(dateVal)) secStr = AddZero(Second(dateVal)) TimeToText = hourStr & ":" & minStr & ":" & secStr End Function
This property is read-only.
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.