1 2 3 4 5 6 7 8
#!/bin/bash FORMAT="${BLOCK_INSTANCE:-%H:%M}" DATETIME=$(date "+${FORMAT}") echo "${DATETIME}" echo "${DATETIME}" echo ""