Skip to content

Commit 2667fd5

Browse files
committed
v0.6.1 update
1 parent c661c2a commit 2667fd5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Code/uet.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ def main(input):
5757
epoch = float(input)
5858
gmtTime = time.strftime("%a, %d %b %Y %H:%M:%S %Z", time.gmtime(epoch))
5959
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)
6465
logger.debug('Local time: ' + str(locTime))
6566
logger.debug(' GMT: ' + str(gmtTime))
67+
return gmtTime,locTime
6668

6769
## - - - - - - END TEST CODE - - - - - - -
6870
#

0 commit comments

Comments
 (0)