CompileNix's Blog - The "date" shell command ��

Start Page | RSS Feed | Find Stuff

I tools i love, today "date":


date --rfc-email --date="aug 15 10am"
# Mon, 15 Aug 2022 10:00:00 +0200

date --rfc-email --date="+2 weeks"
# Fri, 12 Aug 2022 16:17:48 +0200

date --rfc-email --date="next monday 1600"
# Mon, 01 Aug 2022 16:00:00 +0200

# convert the current day of the month + one month at 9pm local time to est
TZ="EST" date --rfc-email --date="next month 2100 Z+0200"
# Mon, 29 Aug 2022 14:00:00 -0500

I use this almost daily 😄