mutapath.Path.atime
- property Path.atime[source]
Last access time of the file.
>>> Path('.').atime > 0 True
Allows setting:
>>> some_file = Path(getfixture('tmp_path')).joinpath('file.txt').touch() >>> MST = datetime.timezone(datetime.timedelta(hours=-7)) >>> some_file.atime = datetime.datetime(1976, 5, 7, 10, tzinfo=MST) >>> some_file.atime 200336400.0
See also