'Write time to a string using a given format.
By default, just interprets str_fmt as a format string,
but subclasses can add to this.'

def format_string(self, str_fmt, **kwargs):

    return str_fmt.format(**kwargs)
