MCPcopy Create free account
hub / github.com/cxapython/catvm / parse_date

Function parse_date

selenium/shannon_spider/util/__init__.py:35–37  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

33 return json.loads(json_str)
34
35def parse_date(d):
36 if d is None or '-' == d: return None
37 else: return datetime.datetime.strptime(d, '%Y-%m-%d').date()
38
39def parse_decimal(d):
40 if d is None or '-' in d: return None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected