```python
elif isinstance(time_string, tuple) or time_format == ''string'
```

same kind of thing for 'datetime'