Add Python version output (#7814)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-05-14 18:30:47 +02:00
1 parent 4a295b1a89
commit 3356f2609c
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -256,7 +256,7 @@ def file_age(path=__file__):
return dt.days # + dt.seconds / 86400 # fractional days
def file_update_date(path=__file__):
def file_date(path=__file__):
# Return human-readable file modification date, i.e. '2021-3-26'
t = datetime.fromtimestamp(Path(path).stat().st_mtime)
return f'{t.year}-{t.month}-{t.day}'