in reply to Mac timestamp
perl -MPOSIX -e 'print strftime("%Y-%m-%d %H:%M:%S", localtime(qx(date + +%s)));' [download]
..or a variation of this...
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»