utils: Add function to format seconds