name: pyfilenamemtime
author: Tim Roberts
home page:
download: As of PyBlosxom 1.5 rc1, comes with PyBlosxom
license: MIT
category: date
tags: 1.4 1.5 core
last edited: Feb 20, 2013 (Wednesday)

If a filename contains a timestamp in the form of YYYY-MM-DD-hh-mm, change the mtime to be the timestamp instead of the one kept by the filesystem.

For example, a valid filename would be foo-2002-04-01-00-00.txt for April fools day on the year 2002. It is also possible to use timestamps in the form of YYYY-MM-DD.