Conteúdo do Curso
Organizing Date and Time Data for Analysis and Applications
Organizing Date and Time Data for Analysis and Applications
Operations with Dates
Now that you have understood what datetime
objects are and how you can transform them, we can introduce the timedelta()
function. timedelta()
allows you to alter your dates by adding a delta to your dates (days, months, ecc..). We will also show how easy it is to find the difference between two dates.
Tarefa
Swipe to show code editor
- Import the
datetime
library with thetimedelta
module; - Find the difference between two dates;
- Add 30 days to the
date1
variable.
Mark tasks as Completed
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 5