Returns the current value of the SFTime event-out slot.
Declaring type: EventOutSFTime
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract double GetValue ()
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 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);