The time when the event happened.
Declaring type: VrmlEvent
Namespace: Vrml.EAI.Event
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public double Time { get; }
Property Value
The number of seconds since January the 1st, 1970, 00:00:00 GMT when the event happened.
Collapse/Expand Remarks
This is a read-only property. You can only set this property via the constructor when creating new VrmlEvent objects.
Collapse/Expand Example
The following example gets the timestamp from the event, converts it to a DateTime object, and prints it to the console:
C#
Vrml.EAI.Event.VrmlEvent evt = ...;
System.DateTime t = new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc).AddSeconds(evt.Time).ToLocalTime();
System.Console.WriteLine("Time = " + t);