This article explains how to find the time interval between two Unix time stamps. The default time format in Unix is like this: “Sun 9 Aug 12:50:08 BST 2020”. It appears in many places on the system and is the default produced by the “date” command.
For example, it might appear in application log files, like this::
Start time: Sun 9 Aug 10:05:00 BST 2020 End Time: Sun 9 Aug 12:51:12 BST 2020
This article explains how to subtract one time from the other in Bash, and obtain the intervening time in seconds.Continue reading