@@ -0,0 +1,664 @@
+#!/usr/bin/env python%0A# encoding: utf-8%0A%0Aimport pytz%0Aimport dateutil.parser%0Aimport calendar as cal%0Aimport datetime%0A%0A%0Adef iso_time_to_utc_timestamp(iso_time_str):%0A%0A    SHANGHAI = pytz.timezone('Asia/Shanghai')%0A%0A    _when = dateutil.parser.parse(iso_time_str)%0A%0A    if not _when.tzname():%0A            _when = SHANGHAI.localize(_when)%0A%0A    return cal.timegm(_when.utctimetuple())%0A%0A%0Adef get_yesterday_begin_timestamp():%0A%0A    SHANGHAI = pytz.timezone('Asia/Shanghai')%0A%0A    today_date = datetime.datetime.now(SHANGHAI).replace(hour=0, minute=0, second=0)%0A%0A    yesterday_date = today_date - datetime.timedelta(days=1)%0A%0A    return cal.timegm(yesterday_date.utctimetuple())%0A

add time related utils