Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
What Day is it Today? | Working with Dates
Dealing with Dates and Times in Python
course content

Conteúdo do Curso

Dealing with Dates and Times in Python

Dealing with Dates and Times in Python

1. Working with Dates
2. Working with Times
3. Timezones and Daylight Savings Time (DST)
4. Working with Dates and Times in pandas

What Day is it Today?

Welcome on board! In this course, and especially within the next sections you will work with the datetime library that provides powerful functionality to work and deal with dates in Python. Since we are going to work with only dates, we will import only date class from the datetime library.

Let's begin with library loading. Remember, to load a library in Python we need to write import library_name, and to load only specific class use from library_name import class_name.

12
# Load class from library from datetime import date
copy

Since we have loaded the library and the class, we can use its methods. For example, imagine we want to call method course from codefinity class. It can be done the next way:

12345
# Load class from some_library import codefinity # Call method of this class codefinity.course()
copy

Let's start with a simple task.

Tarefa

Print today's date. Use today() method of date class.

Tarefa

Print today's date. Use today() method of date class.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 1. Capítulo 1
toggle bottom row

What Day is it Today?

Welcome on board! In this course, and especially within the next sections you will work with the datetime library that provides powerful functionality to work and deal with dates in Python. Since we are going to work with only dates, we will import only date class from the datetime library.

Let's begin with library loading. Remember, to load a library in Python we need to write import library_name, and to load only specific class use from library_name import class_name.

12
# Load class from library from datetime import date
copy

Since we have loaded the library and the class, we can use its methods. For example, imagine we want to call method course from codefinity class. It can be done the next way:

12345
# Load class from some_library import codefinity # Call method of this class codefinity.course()
copy

Let's start with a simple task.

Tarefa

Print today's date. Use today() method of date class.

Tarefa

Print today's date. Use today() method of date class.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 1. Capítulo 1
toggle bottom row

What Day is it Today?

Welcome on board! In this course, and especially within the next sections you will work with the datetime library that provides powerful functionality to work and deal with dates in Python. Since we are going to work with only dates, we will import only date class from the datetime library.

Let's begin with library loading. Remember, to load a library in Python we need to write import library_name, and to load only specific class use from library_name import class_name.

12
# Load class from library from datetime import date
copy

Since we have loaded the library and the class, we can use its methods. For example, imagine we want to call method course from codefinity class. It can be done the next way:

12345
# Load class from some_library import codefinity # Call method of this class codefinity.course()
copy

Let's start with a simple task.

Tarefa

Print today's date. Use today() method of date class.

Tarefa

Print today's date. Use today() method of date class.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Welcome on board! In this course, and especially within the next sections you will work with the datetime library that provides powerful functionality to work and deal with dates in Python. Since we are going to work with only dates, we will import only date class from the datetime library.

Let's begin with library loading. Remember, to load a library in Python we need to write import library_name, and to load only specific class use from library_name import class_name.

12
# Load class from library from datetime import date
copy

Since we have loaded the library and the class, we can use its methods. For example, imagine we want to call method course from codefinity class. It can be done the next way:

12345
# Load class from some_library import codefinity # Call method of this class codefinity.course()
copy

Let's start with a simple task.

Tarefa

Print today's date. Use today() method of date class.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 1. Capítulo 1
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt