For this project, you get to calculate the number of days since the Epoch. Additionally, you get to calculate the number of days between two times provided by the user.
The time module provides a method (a special type of function) to get the number of seconds since the Epoch. For UNIX machines (including Mac machines), the Epoch is January 1, 1970. You can convert between seconds and days by dividing by the number of seconds in a minute (60), then dividing by the number of minutes in an hour (60), then divide by the number of hours in a day (24):
seconds / 60 / 60 / 24
Write a Python 3 script that has a function for each of the following tasks:
Include comments at the top of the file with a description of the script, your name and the date. Additionally, include a descriptive comment before each function and each major section of your code. Describe in English (not code) what the function or section does. Be sure to include any assumptions. Write the comments for another software developer to read, meaning one that already knows Python.
Welcome to My Time Functions Script! There have been 19885.7 days since the Epoch Please enter a start time in seconds: 123456789 You entered 123456789 Please enter an end time in seconds: 987654321 You entered 987654321 There have been 10002.3 days between the start time (123456789.0) and the end time (987654321.0)Note: The number of days since the Epoch keeps changing. Write your script so that the correct number always displayed.
Welcome to My Time Functions Script! There have been 19885.7 days since the Epoch Please enter a start time in seconds: 23456789 You entered 23456789 Please enter an end time in seconds: 123456789 You entered 123456789 There have been 1157.4 days between the start time (23456789.0) and the end time (123456789.0)
Welcome to My Time Functions Script! There have been 19885.7 days since the Epoch Please enter a start time in seconds: 0 You entered 0 Please enter an end time in seconds: 1632270774 You entered 1632270774 There have been 18892.0 days between the start time (0.0) and the end time (1632270774.0)
Points Item ---------- -------------------------------------------------------------- _____ / 10 Comments before each function and major section of code (written for another software developer; not too many comments and not too few) _____ / 40 6+ functions (including main()) _____ / 20 Correct output _____ / 2 Completed rubric (estimates for each line including hours spent) _____ / 72 Total _____ Approximate number of hours spent I, (REPLACE WITH YOUR FULL NAME), affirm that the code that I submitted is my own work and that I did not receive help that was not authorized by the instructor.