DateBetween


Node Information
DateTime, a value between two dates.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
From IN DateTime ONE FALSE FALSE
To IN DateTime ONE FALSE FALSE
To OUT DateBetween MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("DateBetween")]
    public class VarDateBetween : Node
    {
        Port val = new Port(PortType.IN, typeof(DateTime), AcceptsLinks.ONE, "From");
        Port val2 = new Port(PortType.IN, typeof(DateTime), AcceptsLinks.ONE, "To");
        Port v = new Port(PortType.OUT, typeof(KIO.DateBetween), AcceptsLinks.MULTIPLE, "To");
        public VarDateBetween()
        {
            NodeType = KGraph.NodeType.Variable;
            Dependency = DependencyLibraries.IOOPERATIONS;
            ReturnType = typeof(KIO.DateBetween);
            val.Value = DateTime.Now.ToString(KordueneCore.STANDARD_DATE_FORMAT);
            val2.Value = DateTime.Now.ToString(KordueneCore.STANDARD_DATE_FORMAT);
            Name = "DateBetween";
            AddPort(val);
            AddPort(val2);
            AddPort(v);
            Information = "DateTime, a value between two dates.";
        }
        public override string Code()
        {
            return "new KIO.DateBetween(" + GetValue(val) + ", " + GetValue(val2) + ")";
        }
    }
}