Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
11
import
datetime
as
dt
12
13
def
file_mtime(path):
14
t = dt.datetime.fromtimestamp(os.stat(path).st_mtime,
15
dt.timezone.utc)
16
return
t.astimezone().isoformat()
17
18
def
main():
19
Callers
1
main
Function · 0.85
Calls
4
astimezone
Method · 0.80
fromtimestamp
Method · 0.45
stat
Method · 0.45
isoformat
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…