Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Operations with Dates | Organizing Date and Time Data for Analysis and Applications
Organizing Date and Time Data for Analysis and Applications
course content

Зміст курсу

Organizing Date and Time Data for Analysis and Applications

bookOperations 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.

Завдання

  1. Import the datetime library with the timedelta module;
  2. Find the difference between two dates;
  3. Add 30 days to the date1 variable.

Mark tasks as Completed
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

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.

Завдання

  1. Import the datetime library with the timedelta module;
  2. Find the difference between two dates;
  3. Add 30 days to the date1 variable.

Mark tasks as Completed
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 5
AVAILABLE TO ULTIMATE ONLY
some-alt