var.isTimestamp

bool isTimestamp() @property const nothrow @nogc pure @safe

Check if this var holds a ddn.datetime.Timestamp value.

More readable alternative to v.type == var.Type.TIMESTAMP_NS.

Returns

true if the value is a nanosecond instant, false otherwise.

Examples

import ddn.datetime: Timestamp;
var ts = Timestamp(0L);
assert(ts.isTimestamp);
var n;
assert(!n.isTimestamp);