Here’s a quick script I swear I’ve written before but couldn’t find. If given a string as an argument, it converts it to seconds, and if given just a series of numbers, it converts the number to a human-readable string.
This is a companion discussion topic for the original entry at https://brettterpstra.com/2017/08/18/seconds-cli-for-quick-time-interval-calculation