I need something simple like date, but in seconds since 1970 instead of the current date, hours, minutes, and seconds.
date
date doesn\'t seem t
use this bash script (my ~/bin/epoch):
~/bin/epoch
#!/bin/bash # get seconds since epoch test "x$1" == x && date +%s && exit 0 # or convert epoch seconds to date format (see "man date" for options) EPOCH="$1" shift date -d @"$EPOCH" "$@"