To get the current unix timestamp:

date +%s

To get the date from a timestamp:

date -r 1559591041

In Linux:

date -d "@1559591041"