1using System.Threading.Tasks;
34 public override string[]
Aliases =>
new string[] {
"Seconds" };
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 IElement EvaluateScalar(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
override Task< IElement > EvaluateScalarAsync(IElement Argument, Variables Variables)
Evaluates the function on a scalar argument.
Second(ScriptNode Argument, int Start, int Seconds, Expression Expression)
Seconds(x)
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 Seconds component.