I would prefer strftime than string formatting. Or use class `parsetime` from `utils.timeutil`, there are some generic formats.