def get_dir_time_suffix():
 dirfmt = '%4d-%02d-%02d_%02d%02d%02d'
 now = time.localtime()[0:6]
 dirname = (dirfmt % now)
 return dirname

def get_dir_time_suffix ( ) : dirfmt = '%4d-%02d-%02d_%02d%02d%02d' now = time . localtime ( ) [ 0 : 6 ] dirname = ( dirfmt % now ) return dirname
returns the name of a folder with the now time as suffix .