Reference to a SFTime event-out slot.
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract class EventOutSFTime :  EventOut
Collapse/Expand Remarks
Use this class to read values from SFTime event-out slots.
Collapse/Expand Members

Click here to see the list of members.

Collapse/Expand Example
The following example demonstrates how to get the current time stamp from a TimeSensor node:
C#
Vrml.EAI.Node timeSensor = ...;
Vrml.EAI.Field.EventOutSFTime time = (Vrml.EAI.Field.EventOutSFTime)timeSensor.GetEventOut("time");
System.DateTime t = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc).AddSeconds(time.GetValue()).ToLocalTime();
System.Console.WriteLine("Time = " + t);