On this page
ntpath.getmtime
Prev: ntpath.getctime | Up: ntpath | Next: ntpath.getsize
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.getmtime
Tags: #public #python3 #stdlib #ntpath
Import
import ntpath
from ntpath import getmtime
Signature & Overview
ntpath.getmtime(filename)
Return the last modification time of a file, reported by os.stat().
Usage
import ntpath
assert ntpath.getmtime('.') > 0
Gotchas
- Returns last modification time (epoch float).
REPL Inspect
from ntpath import getmtime
help(getmtime)
Linked from
Related notes
- tuts/python3/stdlib_module/ntpath/getctime Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/getsize Linked here; links to this page; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/ntpath/abspath Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/basename Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/commonpath Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/commonprefix Linked here; shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/dirname shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/exists shared tags: #ntpath, #stdlib
- tuts/python3/stdlib_module/ntpath/expanduser shared tags: #ntpath, #stdlib