Temporal data appears frequently in computational work. Measurements recorded from sensors, economic results, stock prices, time-stepping numeric simulations, and so on are useless without accompanying time values. In this chapter, we’ll cover Python’s datetime module which offers capabilities similar to MATLAB’s data type of the same name.
5.1 Time
Python’s time module has functions to return the current time, either in the local timezone or UTC; measure CPU or elapsed time; and sleep for a desired amount of time. ...