Table of Contents

Class UnixTimestamp

Namespace
Albatross.Expression.Prefix
Assembly
Albatross.Expression.dll

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

Operands

  1. input : any

Output Type: long

public class UnixTimestamp : PrefixExpression, IPrefixExpression, IExpression, IToken
Inheritance
UnixTimestamp
Implements
Inherited Members
Extension Methods

Constructors

UnixTimestamp()

public UnixTimestamp()

Methods

Run(List<object>)

Executes the prefix function with the evaluated operand values. Derived classes should override this method to implement specific function logic.

protected override object Run(List<object> operands)

Parameters

operands List<object>

The list of evaluated operand values.

Returns

object

The result of the function.