I've got some files and for logging purposes I need to know how many days they are apart as well as potentially some other lengths. So I would like to have a script or application that:
- Can have two dates entered into it in the following format:
- Can optionally also have a time given to it in the format of
hh:mm:ssin the 24-hour format
- Can be told if it should output the time between the two in either: seconds, minutes, hours, days, months or years.
- Preferably it would be nice if it could be asked to return more than just one amount of time between the two, so even if it outputs it in all those lengths then that is fine.
I am running Ubuntu GNOME 17.04 with GNOME 3.24.1. If there are some commands which can do that that would be fine as well.