DIAdem Help

Method: CreateTime for DataPlugin

  • Updated2024-09-12
  • 1 minute(s) read

Method: CreateTime for DataPlugin

Creates a time value. You can assign this time value to a value in a time channel or to a property.

Set oUsiTimeDisp = Object.CreateTime(Year, Month, Day, Hour, Minute, Second, Millisecond, Microsecond, Nanosecond)
ObjectDataPlugin
Object with this method
YearVariant
Specifies the year.
MonthVariant
Specifies the month.
DayVariant
Specifies the day.
HourVariant
Specifies the hour.
MinuteVariant
Specifies the minute.
SecondVariant
Specifies the second.
MillisecondVariant
Optional in USI 1.5 and later
MicrosecondVariant
Optional in USI 1.5 and later
NanosecondVariant
Optional in USI 1.5 and later
oUsiTimeDispUsiTimeDisp
Returned object
Note  You can use VBS date/time functions instead of CreateTime. However, milliseconds, microseconds, and nanoseconds are not supported with these VBS functions.

The following example creates the root property Time and assigns the time value 06/17/2004 10:00:00 to this property.

Call Root.Properties.Add("Time", CreateTime(2004,6,17,10,0,0,0,0,0))

Log in to get a better experience