/// <summary>
 /// Creates a date time node, which provides the displaced date time value as the <see cref="offset"/> date time that is displaced by the <see cref="TimeSpans"/>.
 /// </summary>
 /// <param name="offset">The offset date time, which will be displaced by the node.</param>
 /// <param name="timeSpans">The timespan nodes, which values will displace the calculated date time.</param>
 public AddToDateTime(IDateTimeComputable offset, params ITimeSpanComputable[] timeSpans)
 {
     Offset    = offset;
     TimeSpans = timeSpans;
 }
 /// <summary>
 /// Creates an instance of this type with the two input date time nodes.
 /// </summary>
 /// <param name="inputFirst">The first date time node.</param>
 /// <param name="inputLast">The second date time node.</param>
 public DateTimeDifference(IDateTimeComputable inputFirst, IDateTimeComputable inputLast)
 {
     InputFirst = inputFirst;
     InputLast  = inputLast;
 }
Example #3
0
 /// <summary>
 /// Creates an instance of this computable quantification.
 /// </summary>
 /// <param name="input">The node, which value will be quantified.</param>
 /// <param name="part">The part, by which the quantification takes place.</param>
 /// <param name="stepSize">The numberic computable that supplies the step size.
 public QuantifyDateTime(IDateTimeComputable input, DateTimePart part, INumericComputable stepSize)
 {
     Input    = input;
     Part     = part;
     StepSize = stepSize;
 }
Example #4
0
 /// <summary>
 /// Creates an instance of this computable quantification.
 /// </summary>
 /// <param name="input">The node, which value will be quantified.</param>
 /// <param name="part">The part, by which the quantification takes place.</param>
 /// <param name="stepSize">The steps by which the quantification takes place.</param></param>
 public QuantifyDateTime(IDateTimeComputable input, DateTimePart part, int stepSize) : this(input, part, new NumericConstant(stepSize))
 {
 }
Example #5
0
 /// <summary>
 /// Creates an instance of this type with the input node.
 /// </summary>
 /// <param name="input">The input node.</param>
 public DateTimeTicks(IDateTimeComputable input)
 {
     Input = input;
 }