by ydnaclementine · 4y ago · 0 comments
now() {
cal -3
echo
echo -n "Local: "
date --rfc-3339=s
echo -n "UTC: "
date -u --rfc-3339=s
echo -n "New York "
TZ='America/New_York' date --rfc-3339=s
echo -n "London: "
TZ='Europe/London' date --rfc-3339=s
echo -n "New Zealand: "
TZ='Pacific/Auckland' date --rfc-3339=s
}ie, I just want to see April of this year: but `cal 4` returns Jan-Dec 0004 CE <!>
`cal -3` is perfect!
~ $ cal apr
cal: year `apr' not in range 1..9999
ncal -b -M -w -B 1 -A 1
speaking of, cal is just a calendar. It doesn't have events anyway.