MCPcopy Index your code
hub / github.com/python/cpython / file_mtime

Function file_mtime

Doc/includes/diff.py:13–16  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

11import datetime as dt
12
13def file_mtime(path):
14 t = dt.datetime.fromtimestamp(os.stat(path).st_mtime,
15 dt.timezone.utc)
16 return t.astimezone().isoformat()
17
18def main():
19

Callers 1

mainFunction · 0.85

Calls 4

astimezoneMethod · 0.80
fromtimestampMethod · 0.45
statMethod · 0.45
isoformatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…