I have a series of stopwatch-like timestamps in a logfile formatted as hh:mm:ss
, e.g. "00:03:30"
. How would I go about parsing such timestamps in Golang such that I could find the difference between two time intervals?
For example, substituting 00:03:30
and 00:03:00
should return 00:00:30
or 30
.