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

Function is_date

stix/utils/__init__.py:270–272  ·  view source on GitHub ↗

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

(obj)

Source from the content-addressed store, hash-verified

268
269
270def is_date(obj):
271 """Returns ``True`` if `obj` is an instance of ``datetime.date``."""
272 return isinstance(obj, datetime.date)
273
274
275def is_bool(obj):

Callers 1

to_dictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected