@@ -0,0 +1,466 @@
+# -*- coding: utf-8 -*-%0A# @Author: Zeyuan Shang%0A# @Date:   2016-04-11 22:58:12%0A# @Last Modified by:   Zeyuan Shang%0A# @Last Modified time: 2016-04-11 22:58:18%0Afrom datetime import datetime%0A%0Aif __name__ == %22__main__%22:%0A    T = int(input())%0A    pattern = '%25a %25d %25b %25Y %25H:%25M:%25S %25z'%0A    for _ in range(T):%0A        s = datetime.strptime(input(), pattern).timestamp()                %0A        t = datetime.strptime(input(), pattern).timestamp()%0A        print(int(abs(s - t)))

add python-time-delta