SyntaxFix
Write A Post
Hire A Developer
Questions
In bash:
bc <<< "$(date --date='1 week ago' +%s) - \ $(date --date='Sun, 29 Feb 2004 16:21:42 -0800' +%s)"
It does require having bc and gnu date installed.