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

posixpath.getmtime

Prev: posixpath.getctime | Up: posixpath | Next: posixpath.getsize
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.getmtime
Tags: #public #python3 #stdlib #posixpath


Import

import posixpath
from posixpath import getmtime

Signature & Overview

posixpath.getmtime(filename)

Return the last modification time of a file, reported by os.stat().

Usage

import posixpath

assert posixpath.getmtime('.') > 0

Gotchas

REPL Inspect

from posixpath import getmtime
help(getmtime)

Linked from

Related notes