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

Constructors

GH_Time

#
Blank constructor
public GH_Time()

GH_Time

#
public GH_Time()

GH_Time

#
public GH_Time(
GH_Time
other
)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

IsValid

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

IsValidWhyNot

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

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

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

Methods

CastFrom

#
public override bool CastFrom(
source
)

CastTo<T>

#
public override bool CastTo<T>(
ref T
target
)
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(
reader
)
GH_Goo<T>.Read

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.
public virtual object ScriptVariable()
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(
writer
)
GH_Goo<T>.Write