def format_time(t):
    # again, workaround dateformat input requirement
    dt = datetime.datetime(2000, 1, 1, t.hour, t.minute, t.second)
    return dateformat.format(dt, 'H:i:s O')
RFC 2822 time formatter
dataset/ETHPy150Open hzlf/openbroadcast/website/apps/tastypie_with_file_upload/utils/formatting.py/format_time