3 ms·
The unix date command does this.
by zadwang 5y ago
The unix date command does this.
- randomswede 5y agoWell, GNU date does, BSD date may or may not. Linux box: $ date -d 'now + 4711 days ago' Thu Nov 6 06:57:20 UTC 2008 $ date --version date (GNU coreutils) 8.30 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie. Mac: % date -d 'now + 4711 days ago' usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] I also seem to be unable to pull a version out of the Mac's date command.