On this page
  1. ntpath.getmtime
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from ntpath import getmtime
help(getmtime)

Linked from

Related notes