<filename>Chapter 09/Chap09_Example9.36.py<gh_stars>0
from time import *

mylocal_time = ctime(1587988490.7900558) # epoch time is passed in seconds
print("The corresponding date and time is: ",mylocal_time)

mylocal_time = ctime() # epoch time is not passed
print("The current date and time is: ",mylocal_time)

<filename>Chapter 09/Chap09_Example9.36.py<gh_stars>0
from time import *

mylocal_time = ctime(1587988490.7900558) # epoch time is passed in seconds
print("The corresponding date and time is: ",mylocal_time)

mylocal_time = ctime() # epoch time is not passed
print("The current date and time is: ",mylocal_time)

# epoch time is passed in seconds # epoch time is not passed