I would like to get the current date-time conveniently on the console in standard ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
I know the
date command displays the current date-time, but not in ISO 8601 format by default. The
-I option shows the date-only portion in standard format. And
2019-07-13T01:18:10+00:00. That is close, but:
- I would prefer the usual
Zon the end for an offset of zero, rather than
- I would like something shorter to type, for such a basic common task.
My Question here is the same as this one, but for BSD rather than Linux (apparently).