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

Function round_hour

tools/github_stats.py:35–36  ·  view source on GitHub ↗
(dt)

Source from the content-addressed store, hash-verified

33#-----------------------------------------------------------------------------
34
35def round_hour(dt):
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."""

Callers 2

issues_closed_sinceFunction · 0.85
github_stats.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected