I would like to get a simple shell script to find the difference in two times.
Example:
Tue May 9 10:38:17 BST 2017
-rw-rw-r-- 1 unikix unikix 1387 Feb 17 11:34 ABC
The first one is the system date and other one, the time extracted from output of list command.
There is a need to check the time format also (12 hour clock and 24 clock) before finding the difference.