Conteúdo do Curso
Organizing Date and Time Data for Analysis and Applications
Organizing Date and Time Data for Analysis and Applications
Store a Specific Date (and Time)
To store a date and time in Python using the datetime module, you can use the datetime class to create a datetime object representing the date and time you want to store.
Tarefa
- Import the
datetime
library; - Get the current date and time (
.now()
); - Create a variable with a specific date (and time). You can choose whichever date you prefer.
Once you've completed this task, click the button above the code to check your solution.
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!
To store a date and time in Python using the datetime module, you can use the datetime class to create a datetime object representing the date and time you want to store.
Tarefa
- Import the
datetime
library; - Get the current date and time (
.now()
); - Create a variable with a specific date (and time). You can choose whichever date you prefer.
Once you've completed this task, click the button above the code to check your solution.
Mark tasks as Completed
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 1. Capítulo 2
AVAILABLE TO ULTIMATE ONLY