DataType.isTemporal

bool isTemporal() const @safe pure nothrow

Returns

true for DATETIME and TIME.