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

Kursusindhold

Organizing Date and Time Data for Analysis and Applications

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

Opgave

Swipe to start coding

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

Løsning

Mark tasks as Completed
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
AVAILABLE TO ULTIMATE ONLY
Vi beklager, at noget gik galt. Hvad skete der?
some-alt