2 ms·
For GNU date, yes. BSD not so much (default on MacOS). MacOS$ date -d 'now + 30 days' usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[
by dredmorbius 7y ago
For GNU date, yes. BSD not so much (default on MacOS).
MacOS$ date -d 'now + 30 days'
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]GNU$ date -d 'now +30 days'
GNU$ date -u -d 'now +30 days'
Sun Apr 5 18:55:12 UTC 2020
(In BSD date, the '-d' argument "Set the kernel's value for daylight saving time.")