home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Basic Command Line Date/Timestanp Examples

July 2012
Code
date +%s
Code
date +%z
Code
printf "%s" $(date +%z)
Code
#!/bin/bash

TIMESTAMP=$(date +%Y-%m-%dT%H:%M:%S)

echo $TIMESTAMP
Results
2017-09-08T09:51:04
═══ § ═══