How to get the epoch timestamp in Bash? Posted on Mar 24, 2018 by Q A In QA In Bash, how to get the epoch timestamp, the number of seconds passed since the epoch? In Bash, you can call the date command with format option “+%s”: date +%s Here, “%s” means: %s seconds since 1970-01-01 00:00:00 UTC Read more: How to convert epoch timestamp to human readable date format in Bash? How to get the epoch timestamp in Python? How to get the epoch timestamp in PHP? How to get the epoch timestamp in Perl? How to get the epoch timestamp in Java? Getting Epoch Timestamp in C How to convert epoch timestamp to human readable date format in Python? How to get the epoch timestamp in Go lang?