1using System.Threading.Tasks;
34 public override string[]
Aliases =>
new string[] {
"Years" };
44 if (
Argument.AssociatedObjectValue is System.DateTime TP)
46 else if (
Argument.AssociatedObjectValue is System.DateTimeOffset TPO)
Script runtime exception.
Class managing a script expression.
Year(ScriptNode Argument, int Start, int Year, Expression Expression)
Year(x)
override string FunctionName
Name of the function
override Task< IElement > EvaluateScalarAsync(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
override IElement EvaluateScalar(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
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 Years component.