def time_format(value, format=None):
 return dateformat.time_format(value, get_format((format or 'TIME_FORMAT')))

def time_format ( value , format = None ) : return dateformat . time_format ( value , get_format ( ( format or 'TIME_FORMAT' ) ) )
convenience function .