Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Read From Seconds
- def readSeconds(s):
- """ This function takes a a number of seconds, s, and returns a string that expresses that span
- of time in terms of days, hours, minutes and seconds.
- """
- # Figure out the number of days
- day_string = <various black magic>
- # Figure out number of hours
- hour_string = <...>
- <...>
- return day_string + " " + hour_string + " " + minute_string + " " + second_string
Add Comment
Please, Sign In to add comment