os.difftime()

os.difftime() is used to find and return the difference duration (in seconds) between two times. The time arguments specified must be in returned from , dates formatted as strings does not work.

When comparing times it is important to use this function because it takes into account time zones and daylight savings.

Â