I print the start and end time using date +"%T", which results in something like:

10:33:56
10:36:10

How could I calculate and print the difference between these two?

I would like to get something like:

2m 14s

19 Answers
19

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *