(It's not so much about python syntax as about time and epoch, etc)
(Found in a book teaching Python concepts)
(This is one of the few exercises that didn't have a link to the solution)
Rules: Aren't any
Exercise 5.1. The time module provides a function, also named time, that returns the current
Greenwich Mean Time in “the epoch”, which is an arbitrary time used as a reference point. On
UNIX systems, the epoch is 1 January 1970.
>>> import time
>>> time.time()
1437746094.5735958
Write a script that reads the current time and converts it to a time of day in hours, minutes, and
seconds, plus the number of days since the epoch.