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

genericpath.getmtime

Prev: genericpath.getctime | Up: genericpath | Next: genericpath.getsize
Rel: genericpath.commonprefix, genericpath.exists, genericpath.getatime, genericpath.getctime
Ref: docs.python.org — genericpath.getmtime
Tags: #public #python3 #stdlib #genericpath


Import

import genericpath
from genericpath import getmtime

Signature & Overview

genericpath.getmtime(filename)

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

Usage

import os

assert os.path.getmtime(".") > 0

Gotchas

REPL Inspect

from genericpath import getmtime
help(getmtime)

Linked from

Related notes