I have searched and searched but can't figure this one out.
I have a time (5H3M17S) and want to convert it into just seconds. I can do the reverse seconds to a formatted time, but am having problmes in reverse.
Note: If there are no seconds then only minutes will be displayed. If there are no hours, then they will not be displayed. Cryptic, huh? IAW: If a time value does not exsist it will not show up.
This is to take the output of newer dig queries who display the TTL (time to live) in hhmmss rather than just seconds.