TIME LORDS
The Time module contains functions that help you retrieve the current system time, read the date from strings, format the time and date, and much more.
STEP 1
First you need to import the Time module. It’s one that’s built-in to Python 3, so you shouldn’t need to drop into a command prompt and pip install it. Once it’s imported, we can call the current time and date with a simple command:
STEP 2
The time function is split into nine tuples, these are divided up into indexed items, as with any other tuple, and shown in the screen shot below.
STEP 3
You can see the structure of how time is presented by entering:
The output is displayed as such: ‘time.struct_time(tm_ year=2019, tm_mon=9, tm_mday=7, tm_hour=9, tm_min=6, tm_sec=13,…
