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

Function is_datetime_naive

delorean/dates.py:28–35  ·  view source on GitHub ↗

This method returns true if the datetime is naive else returns false

(dt)

Source from the content-addressed store, hash-verified

26
27
28def is_datetime_naive(dt):
29 """
30 This method returns true if the datetime is naive else returns false
31 """
32 if dt.tzinfo is None:
33 return True
34 else:
35 return False
36
37
38def is_datetime_instance(dt):

Callers 2

__init__Method · 0.85
stopsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected