Returns one element of a MFTime event-out slot.
Declaring type: EventOutMFTime
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract double Get1Value (
        int index
) 
Parameters
index
The index of the element, starting at 0
Return Value
The time value. This is a double value containing the number of seconds since January the 1st, 1970, 00:00:00 GMT.
Collapse/Expand Example
The following example gets the first value of an "timestamps_changed" event-out slot of a Script node and prints it to the console:
C#
Vrml.EAI.Node script = ...;
Vrml.EAI.Field.EventOutMFTime timestamps_changed = (Vrml.EAI.Field.EventOutMFTime)script.GetEventOut("timestamps_changed");
System.DateTime baseTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
System.Console.WriteLine(baseTime.AddSeconds(timestamps_changed.Get1Value(0)).ToLocalTime());