Skip to content

Commit 75a349c

Browse files
committed
Added
1 parent ca8f439 commit 75a349c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Timezone Checker/current_timezone.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import pytz
44

55
def timezone(timezone_1):
6-
zones = pytz.all_timezones
7-
86

7+
8+
zones = pytz.all_timezones
99
if timezone_1 in zones :
1010
timezone = pytz.timezone(timezone_1)
1111
time = datetime.now(timezone)
@@ -14,6 +14,8 @@ def timezone(timezone_1):
1414
print("The zone provided is not correct")
1515

1616
if __name__=="__main__":
17+
18+
1719
inputs=argparse.ArgumentParser()
1820
inputs.add_argument('-t','--time',type=str, help='Timezone', required=True)
1921
value=inputs.parse_args().time

0 commit comments

Comments
 (0)