641
641
offset = datetime.fromtimestamp(t) - datetime.utcfromtimestamp(t)
642
642
return offset.days * 86400 + offset.seconds
644
weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
645
646
def format_date(t, offset=0, timezone='original', date_fmt=None,