File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,14 @@ def main(input):
57
57
epoch = float (input )
58
58
gmtTime = time .strftime ("%a, %d %b %Y %H:%M:%S %Z" , time .gmtime (epoch ))
59
59
locTime = time .strftime ("%a, %d %b %Y %H:%M:%S %Z" , time .localtime (epoch ))
60
- print ('Local time: ' + str (locTime ) + ' - Pausing for 3 seconds.' )
61
- sleep (3 )
62
- print (' GMT: ' + str (gmtTime ) + ' - Pausing for 3 seconds.' )
63
- sleep (3 )
60
+ if __name__ == "__main__" :
61
+ print ('Local time: ' + str (locTime ) + ' - Pausing for 3 seconds.' )
62
+ sleep (3 )
63
+ print (' GMT: ' + str (gmtTime ) + ' - Pausing for 3 seconds.' )
64
+ sleep (3 )
64
65
logger .debug ('Local time: ' + str (locTime ))
65
66
logger .debug (' GMT: ' + str (gmtTime ))
67
+ return gmtTime ,locTime
66
68
67
69
## - - - - - - END TEST CODE - - - - - - -
68
70
#
You can’t perform that action at this time.
0 commit comments