MCPcopy Index your code
hub / github.com/STIXProject/python-stix / is_timestamp

Function is_timestamp

stix/utils/__init__.py:265–267  ·  view source on GitHub ↗

Returns ``True`` if `obj` is an instance of ``datetime.datetime``.

(obj)

Source from the content-addressed store, hash-verified

263
264
265def is_timestamp(obj):
266 """Returns ``True`` if `obj` is an instance of ``datetime.datetime``."""
267 return isinstance(obj, datetime.datetime)
268
269
270def is_date(obj):

Callers 1

to_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected