Skip to main content
HomePython

Course

Working with Dates and Times in Python

IntermediateSkill Level
4.7+
877 reviews
Updated 11/2022
Learn how to work with dates and times in Python.
Start Course for Free

Included withPremium or Teams

PythonProgramming4 hours14 videos48 Exercises4,100 XP68,884Statement of Accomplishment

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies

Course Description

You'll probably never have a time machine, but how about a machine for analyzing time? As soon as time enters any analysis, things can get weird. It's easy to get tripped up on day and month boundaries, time zones, daylight saving time, and all sorts of other things that can confuse the unprepared. If you're going to do any kind of analysis involving time, you’ll want to use Python to sort it out. Working with data sets on hurricanes and bike trips, we’ll cover counting events, figuring out how much time has elapsed between events and plotting data over time. You'll work in both standard Python and in Pandas, and we'll touch on the dateutil library, the only timezone library endorsed by the official Python documentation. After this course, you'll confidently handle date and time data in any format like a champion.

Prerequisites

Data Manipulation with pandas
1

Dates and Calendars

Start Chapter
2

Combining Dates and Times

Start Chapter
3

Time Zones and Daylight Saving

Start Chapter
4

Easy and Powerful: Dates and Times in Pandas

Start Chapter
Working with Dates and Times in Python
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review

Included withPremium or Teams

Enroll Now

Don’t just take our word for it

*4.7
from 877 reviews
81%
18%
1%
0%
0%
  • Ahmed
    about 1 hour

  • Jose
    about 3 hours

  • Tim
    about 5 hours

  • Florian
    about 6 hours

  • Choon Yong
    about 6 hours

  • Edouard
    about 7 hours

Ahmed

Jose

Tim

Join over 17 million learners and start Working with Dates and Times in Python today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.