MCPcopy Create free account
hub / github.com/ipython/ipython / _parse_datetime

Function _parse_datetime

tools/github_stats.py:38–43  ·  view source on GitHub ↗

Parse dates in the format returned by the Github API.

(s)

Source from the content-addressed store, hash-verified

36 return dt.replace(minute=0,second=0,microsecond=0)
37
38def _parse_datetime(s):
39 """Parse dates in the format returned by the Github API."""
40 if s:
41 return datetime.strptime(s, ISO8601)
42 else:
43 return datetime.fromtimestamp(0)
44
45def issues2dict(issues):
46 """Convert a list of issues to a dict, keyed by issue number."""

Callers 1

issues_closed_sinceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected