vwbusguy, 17 days ago Getting epoch time from exactly six months ago from now is a simple one liner in #bash due to date from coreutils. No pipes, etc, necessary. date -d"6 months ago" '+%s' But you can also use printf builtin with bash if you need something more verbose or want to assign a datetime variable directly.
Getting epoch time from exactly six months ago from now is a simple one liner in #bash due to date from coreutils. No pipes, etc, necessary.
date -d"6 months ago" '+%s'
But you can also use printf builtin with bash if you need something more verbose or want to assign a datetime variable directly.
printf