Displaying Datetime, Working Directory, and File Metadata (PLAB-PYTH)

Welcome to the Displaying Datetime, Working Directory, and File Metadata practice lab. In this module, you will be provided with the instructions and devices needed to develop your hands-on skills.

Overview

Learning Outcomes

In this module, you will complete the following exercises:

  • Exercise 1 – Displaying Date and Time
  • Exercise 2 – Displaying the Working Directory and File Metadata

After completing this lab, you will be able to:

  • Use the built-in datetime module to print the time, date, year, month, and day of the week.
  • Use the built-in os module to display the current working directory and manipulate the directory name and file name.
  • Use the built-in os and time modules to print the metadata of a file such as creation date, modified date, and file size.