Next / Previous / Contents / Shipman's homepage

6.2. Module constants

We define one manifest constant named TIME_FORMAT that controls the formatting of time tuples into textual form. This is used in the PathInfo.__str__() method. It is exported by this module so that other classes that inherit from PathInfo can format other timestamps in the same way. The output is in the form "yyyy-mm-dd hh:mm:ss".
# Manifest constants

TIME_FORMAT  =  "%Y-%m-%d %H:%M:%S"