bash convert date to seconds code example Example: bash convert seconds to date date -u -d @$i +%H:%M:%S