Reference to a SFTime event-out slot.
C# |
---|
public abstract class EventOutSFTime : |
EventOut
|
|
Click here to see the list of members.
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);
|