As part of the assignment, I am asked to find current time from total number of seconds passed since 1st Jan 1970. I know we can use time.time()
to get the seconds but I am having trouble getting into current time.
Attached is the code I have so far.
import time
a=time.time()
hours= (a)//3600
minutes=(a-hours*3600)/60
second=a%60
print(hours,"h",minutes,"m",second,"s")
Please advise.