Assuming you can run the GNU date
command:
date +'%s' -d "01:43:38.123"
If the script generates "mm: ss.mm", you need to add "00:" to the beginning or date
reject it.
If you are on a BSD system (including Mac OS X), you need to run date -j +'%s' "0143.38"
unless you have a GNU date set with MacPorts or Homebrew or something like that.
source share