These are possible output formats for ps h -eo etime
ps h -eo etime
21-18:26:30 15:28:37 48:14 00:01
How to parse them into se
Think I might be missing the point here but the simplest way of doing this is:
ps h -eo etimes
Note the 's' on the end of etime.