Skip to content

Files

Latest commit

author
Christopher Harrison
Sep 17, 2019
b09501b · Sep 17, 2019

History

History
This branch is 11 commits behind microsoft/c9-python-getting-started:master.

6 - Dates

Date values

The datetime module contains a number of classes for manipulating dates and times.

Date and time types:

  • date stores year, month, and day
  • time stores hour, minute, and second
  • datetime stores year, month, day, hour, minute, and second
  • timedelta a duration of time between two dates, times, or datetimes

When naming variables follow the PEP-8 Style Guide for Python Code

Converting from string to datetime