How to convert DATE to UNIX TIMESTAMP in shell script on MacOS February 4, 2023 by Tarik date +%s This works fine for me on OS X Lion.