var.isTime

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

Check if this var holds a TimeOfDay value.

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

Returns

true if the value is a time of day, false otherwise.

Examples

var t = TimeOfDay(14, 30, 0);
assert(t.isTime);
var i = 143000;
assert(!i.isTime);