MCPcopy Create free account
hub / github.com/ElementsProject/lightning / commit_date

Function commit_date

devtools/changelog.py:101–106  ·  view source on GitHub ↗

Get the date of the specified commit.

(commitsha)

Source from the content-addressed store, hash-verified

99
100
101def commit_date(commitsha):
102 """Get the date of the specified commit.
103 """
104 line = git("show -s --format=%ci")
105 dt = datetime.strptime(line.strip(), '%Y-%m-%d %H:%M:%S %z')
106 return dt
107
108
109template = Template("""<%def name="group(entries)">

Callers 1

changelog.pyFile · 0.85

Calls 1

gitFunction · 0.85

Tested by

no test coverage detected