DateTime


Node Information
DateTime, date and time.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT DateTime MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("DateTime")]
    public class VarDateTime : Node
    {
        Port val = new Port(PortType.OUT, typeof(DateTime), AcceptsLinks.MULTIPLE, "Value");
        public VarDateTime()
        {
            NodeType = KGraph.NodeType.Variable;
            ReturnType = typeof(DateTime);
            val.Value = DateTime.Now.ToString(KordueneCore.STANDARD_DATE_FORMAT);
            Name = "DateTime";
            AddPort(val);
            Information = "DateTime, date and time.";
        }
        public override string Code()
        {
            return GetValue(val);
        }
    }
}