I'm looking for the cleanest way to calculate the time elapsed between two times in KSH. In minutes or in hours and minutes if it has been longer than 59 minutes.
Here are some random examples:
Example result: 25 Minutes
or
Example result: 1 Hour and 25 Minutes
Example time format:
"23:45:33 EDT 2004" and "00:25:06 EDT 2004"
If anyone has a solution or idea, I would be very grateful. These types of problems just seem to throw the brakes on my brain right from the start. Thanks for any help
Thank you Ygor, that does exactly what I was looking for. Some day I too will be able to make these insane things up on my own with a little help from examples like yours.