1 module orelang.operator.DatetimeOperators; 2 import orelang.operator.IOperator, 3 orelang.Engine, 4 orelang.Value; 5 import std.datetime, 6 std.conv; 7 8 class GetCurrentUNIXTime : IOperator { 9 /** 10 * call 11 */ 12 public Value call(Engine engine, Value[] args) { 13 return new Value(Clock.currTime.toUnixTime.to!string); 14 } 15 }