Join Joe Marini for an in-depth discussion in this video The date, time, and datetime classes, part of Learning Python (2013).
Now that we've taken a look at the basics of the Python language.…We're going to turn our attention to using the rich library of predefined code that…comes with Python in order to build functionality into the Python applications.…And in this chapter we're going to focus on manipulating dates and times.…So here in my project I'm going to go to chapter three and I'm going to open up…dates_start, and I've got my examples snippets open and scroll down to Chapter 3.…Okay, so here's the starting point for the first example, now in order to get this…rich functionality that Python provides into your application.…
You have to tell the Python interpreter to go get it from somewhere.…And the way you do that is by using something called an Import statement.…So let's go over to the example snippets and here in the date I'm going to copy…these three lines right here, alright, I want to paste these into the top of the file.…What I'm doing here is telling the Python interpreter that from the datetime module…I want to import the datetime and datetime classes.…
- Installing Python
- Choosing an editor/IDE
- Working with variables and expressions
- Writing loops
- Using the date, time, and datetime classes
- Reading and writing files
- Fetching Internet data
- Parsing and processing HTML
Skill Level Beginner
1. Preparing the Development Environment
2. Python Basics
3. Working with Dates and Times
4. Working with Files
5. Working with Web Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.