Namespace: Albatross.Expression.Prefix
Prefix operation that convert a DateTime to the number of seconds that have elapsed since 1970-01-01T00:00:00Z. It is also called unix timestamp. If the input is not DateTime, the operand is converted to text first and parsed to a datetime object
Operand Count: 1
Output Type: long
public class UnixTimestamp : PrefixExpression, Albatross.Expression.Nodes.IPrefixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken
Inheritance Object → PrefixExpression → UnixTimestamp
Implements IPrefixExpression, IExpression, IToken
The name of the prefix function.
public string Name { get; }
The token representation, which is the same as the Name.
public string Token { get; }
The minimum number of operands this function requires.
public int MinOperandCount { get; }
The maximum number of operands this function accepts.
public int MaxOperandCount { get; }
The list of operand expressions passed to this function.
public IReadOnlyList<IExpression> Operands { get; set; }
public UnixTimestamp()
protected object Run(List<object> operands)
operands
List<Object>