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