(Don't ask me for the solution, I don't know it)(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 currentGreenwich Mean Time in “the epoch”, which is an arbitrary time used as a reference point. OnUNIX systems, the epoch is 1 January 1970.>>> import time>>> time.time()1437746094.5735958Write a script that reads the current time and converts it to a time of day in hours, minutes, andseconds, plus the number of days since the epoch.

Very nice, thank you. I couldn't really proceed with the book without getting over this hump. Oh boy, programming does take a lot of mathematics. I find programming fascinating, but I see now that if I am to pursue it further, I will need more than casual interest. Thank you very much for doing this for me. I would not have been able to figure out that dividing the ut by (60 * 60 * 24) results in days. You're a genius!

Edit: Alright, thinking it through, 60 seconds * 60 minutes * 24 hours in a day is 86400 seconds in a day. Very clever