johnslattery
3/30/2017 - 1:55 PM

Create a date time string for use as a time stamp in a filename, log, or other output.

Create a date time string for use as a time stamp in a filename, log, or other output.

timestamp="$(date --utc +%Y%m%dT%H%M%SZ)"
timestamp_sqlite="$(date --utc "+%Y-%m-%d %H:%M:%S")"