Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Dates and Times!
You have completed Python Dates and Times!
Preview
In this video, we dive into the final function of the Time Tracker App, a powerful tool for calculating the total time spent on a client in the last X number of days.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We are here at
the display_x_days_totals function.
0:00
Now for this one, the user is entering
a day in which they want to go back in
0:00
time to start grabbing the data from.
0:05
So this is very,
very similar to our date range function.
0:08
In fact,
we can probably reuse a lot of that code.
0:11
But what we can't reuse is the range, and
0:14
that's what we're trying
to figure out here.
0:17
So as it says in this TODO,
it says, determine the start and
0:20
end datetimes for this range.
0:24
Now, the end date time should
be pretty straightforward,
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up