GetTreeTimeStamp

Returns a timestamp that indicates when the dimension was last updated.

Syntax

<IHsvTreeInfo>.GetTreeTimeStamp pdTimeStamp

Argument

Description

pdTimeStamp

Double. Returns the timestamp showing when the dimension was updated.

The timestamp can be converted to a Date format; for example, in Visual Basic you can convert with CDate.

Example

The following function returns an array of Dates that indicate when all of the dimensions were last updated. The HFMConstants type library constants Dimension ID Constants are used for the daDates variable declaration, the loop, and the index of the array.

Function getDimStamps() As Date()
Dim cTreeInfo As IHsvTreeInfo, dTime As Double
Dim daDates(DIMENSION_UBOUND) As Date
For i = DIMENSION_LBOUND To DIMENSION_UBOUND
   'g_cMetadata is a previously set HsvMetadata instance
   Set cTreeInfo = g_cMetadata.Dimension(i)
   cTreeInfo.GetTreeTimeStamp dTime
   daDates(i) = CDate(dTime)
Next i
getDimStamps = daDates
End Function