MCPcopy
hub / github.com/myusuf3/delorean / is_datetime_instance

Function is_datetime_instance

delorean/dates.py:38–42  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

36
37
38def is_datetime_instance(dt):
39 if dt is None:
40 return
41 if not isinstance(dt, datetime):
42 raise ValueError('Please provide a datetime instance to Delorean')
43
44
45def _move_datetime(dt, direction, delta):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected