Bash - Timestamp Function Example - From http://stackoverflow.com/questions/17066250/create-timestamp-variable-in-bash-script
#!/bin/bash
# Define a timestamp function
timestamp() {
date +"%T"
}
# do something...
timestamp # print timestamp
# do something else...
timestamp # print another timestamp
# continue...