1using System.Threading.Tasks;
34 public override string[]
Aliases =>
new string[] {
"Minutes" };
44 object Obj =
Argument.AssociatedObjectValue;
46 if (Obj is System.DateTime TP)
48 else if (
Argument.AssociatedObjectValue is System.DateTimeOffset TPO)
50 else if (Obj is System.TimeSpan TS)
Script runtime exception.
Class managing a script expression.
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
override string FunctionName
Name of the function
override Task< IElement > EvaluateScalarAsync(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
Minute(ScriptNode Argument, int Start, int Minutes, Expression Expression)
Minutes(x)
override IElement EvaluateScalar(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
Base class for funcions of one scalar variable.
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
int Start
Start position in script expression.
Basic interface for all types of elements.
Interface for objects having a Minutes component.