-
Notifications
You must be signed in to change notification settings - Fork 0
/
UTCExcTab_UTCtoTarget.py
100 lines (96 loc) · 3.13 KB
/
UTCExcTab_UTCtoTarget.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Function UTCExcTab_UTCtoTarget, used to calculate the time difference between the "input" and UTC.
# This file ia a part of "TimeConverter.py", removing this file will cause the main program stop working.
# Author: Olvcpr423.
# Start:
def UTCtoTarget(input):
if input == '0':
return int(0)
elif input == '+1' or input == '-1':
if input == '+1':
return int(+3600)
elif input == '-1':
return int(-3600)
elif input == '+2' or input == '-2':
if input == '+2':
return int(+7200)
elif input == '-2':
return int(-7200)
elif input == '+3' or input == '-3':
if input == '+3':
return int(+10800)
elif input == '-3':
return int(-10800)
elif input == '+3:30' or input == '-3:30':
if input == '+3:30':
return int(+12600)
elif input == '-3:30':
return int(-12600)
elif input == '+4' or input == '-4':
if input == '+4':
return int(+14400)
elif input == '-4':
return int(-14400)
elif input == '+5' or input == '-5':
if input == '+5':
return int(+18000)
elif input == '-5':
return int(-18000)
elif input == '+6' or input == '-6':
if input == '+6':
return int(+21600)
elif input == '-6':
return int(-21600)
elif input == '+7' or input == '-7':
if input == '+7':
return int(+25200)
elif input == '-7':
return int(-25200)
elif input == '+8' or input == '-8':
if input == '+8':
return int(+28800)
elif input == '-8':
return int(-28800)
elif input == '+9' or input == '-9':
if input == '+9':
return int(+32400)
elif input == '-9':
return int(-32400)
elif input == '+9:30' or input == '-9:30':
if input == '+9:30':
return int(+10800)
elif input == '-9:30':
return int(-10800)
elif input == '+10' or input == '-10':
if input == '+10':
return int(+36000)
elif input == '-10':
return int(-36000)
elif input == '+11' or input == '-11':
if input == '+11':
return int(+39600)
elif input == '-11':
return int(-39600)
elif input == '+12' or input == '-12':
if input == '+12':
return int(+43200)
elif input == '-12':
return int(-43200)
elif Origintimezone == '+4:30':
return int(+16200)
elif Origintimezone == '+5:30':
return int(+19800)
elif Origintimezone == '+5:45':
return int(+20700)
elif Origintimezone == '+6:30':
return int(+23400)
elif Origintimezone == '+9:30':
return int(+34200)
elif Origintimezone == '+10:30':
return int(+37800)
elif Origintimezone == '+12:45':
return int(+45900)
elif Origintimezone == '+13':
return int(+46800)
elif Origintimezone == '+14':
return int(+50400)
#End.