Зміст курсу
Python Basics: Date and Time Mastery
Access the Datetime Object Properties
We have now completely familiar with datetime
objects! This chapter will be an easy one for us, I guess...
Once you have created a dt
object, you can access its properties using the appropriate attributes.
Завдання
Access the year
, month
, hour
, and minute
via the attributes.
Завдання
Access the year
, month
, hour
, and minute
via the attributes.
Все було зрозуміло?
We have now completely familiar with datetime
objects! This chapter will be an easy one for us, I guess...
Once you have created a dt
object, you can access its properties using the appropriate attributes.
Завдання
Access the year
, month
, hour
, and minute
via the attributes.