How to get the current timestamp with bash?

Timestamp is the number of seconds that have elapsed since January 1, 1970.

Run the following command to get it:

date +%s
Posted on 2023-04-15