If you want to get unix timestamp, then you need to use:
timestamp=$(date +%s)
%T will give you just the time; same as %H:%M:%S (via http://www.cyberciti.biz/faq/linux-unix-formatting-dates-for-display/)
If you want to get unix timestamp, then you need to use:
timestamp=$(date +%s)
%T will give you just the time; same as %H:%M:%S (via http://www.cyberciti.biz/faq/linux-unix-formatting-dates-for-display/)