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

Contenuti del Corso

Organizing Date and Time Data for Analysis and Applications

book
strftime( )

Now that you have created your dt object, you may have noticed that this is a proprietary Datetime object and, therefore, some methods may fail when applied to it. For that reason, datetime provides some functions to transform the datetime object into a string. This is particularly useful when you are in need of changing the formatting.

Compito

Swipe to start coding

  1. Create a Datetime object with the current date and time;
  2. Use the strftime() module to change the formatting in "%Y-%m-%d";
  3. Print the type of the dt variable.

Soluzione

Mark tasks as Completed
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
AVAILABLE TO ULTIMATE ONLY
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt