AGI STK VGT 11Send comments on this topic.
FindStartTime Method (IAgCrdnEventIntervalSmartInterval)
See Also  Example
Windows






Windows & Linux

Description

Finds a start time of the interval. An exception is thrown if the start time cannot be determined from the interval's current state.

Syntax

[Visual Basic .NET]
Public Function FindStartTime() As System.Object
[C#]
public System.Object FindStartTime();
[Managed C++]
public: VARIANT FindStartTime();
[Java]
public Variant findStartTime();
[Unmanaged C++]
public: HRESULT FindStartTime(
   VARIANT * ReturnValue
);

Example

Convert the start and stop times of the interval into a time.
[C#]Copy Code
smartInterval.SetStartTimeAndDuration("Now""+100 day"); 
object startTime = smartInterval.FindStartTime(); 
object stopTime = smartInterval.FindStopTime(); 
 
Console.WriteLine("StartTime = {0}, StopTime = {1}", startTime, stopTime); 
 

Convert the start and stop times of the interval into a time.
[Visual Basic .NET]Copy Code
smartInterval.SetStartTimeAndDuration("Now", "+100 day")
Dim startTime As Object = smartInterval.FindStartTime()
Dim stopTime As Object = smartInterval.FindStopTime()

Console.WriteLine("StartTime = {0}, StopTime = {1}", startTime, stopTime)

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.