public class GH_Time : GH_Goo<DateTime>
Represents a date and time. GH_Time re-implements the framework System.DateTime type.

Constructors

GH_Time

#
public GH_Time()
Blank constructor

GH_Time

#
public GH_Time(DateTime time)
time (DateTime)

GH_Time

#
public GH_Time(GH_Time other)
other (GH_Time)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

#
public override bool IsValid { get; }
Gets the validity of this instance. Datetime is valid if it's not equal to DateTime.MaxValue

IsValidWhyNot

#
public override string IsValidWhyNot { get; }
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

public virtual T Value { get; set; }
Gets or sets the internal data.
inherited fromGH_Goo<T>

Methods

CastFrom

#
public override bool CastFrom(object source)
source (object)

CastTo<T>

#
public override bool CastTo<T>(ref T target)
target (ref T)
GH_Goo<T>.CastTo

Duplicate

#
public override IGH_Goo Duplicate()

DuplicateDateTime

#
public GH_Time DuplicateDateTime()

EmitProxy

#
public override IGH_GooProxy EmitProxy()

Read

#
public override bool Read(GH_IReader reader)
reader (GH_IReader)
GH_Goo<T>.Read

ScriptVariable

public virtual object ScriptVariable()
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
inherited fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable

ToString

#
public override string ToString()

Write

#
public override bool Write(GH_IWriter writer)
writer (GH_IWriter)
GH_Goo<T>.Write