I would like to know if there is a way to calculate the difference between two times in bash. I have two fields that are extracted from a log file:
Start time: Feb 12 10:02:10 End time: Feb 12 10:53:15
What I need is a manual way to get the elapsed time between these 2 dates. Since the time values are "text based", and not from a date generating command, I don't know if there's a way to do it. The times are 24 hour based, so hopefully that'll make times spanning midnight easier to handle. Any suggestions will be greatly appreciated. Peter V.