Lab #6

  1. The datetime library – This section introduces us to the datetime function

str

2. Getting the Current Date and Time – Here we use the datetime function to get today’s date and the exact time.

str 2

3. Extracting Information – In this step we find out we can choose to only see the date.

str 3

4. Hot Date – We also find out that we use %s as a place holder for the inputting today’s date in a specific order.

str 4

5. Pretty Time – This step we can use the same procedure as was used in the previous one but this time we are using it to show the time.

str 5

6. Grand Finale – This is done by putting together what was shown in step 4 & 5. So we see the date and the exact time together.

str 6