This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:basics [2019/09/03 10:57] mstraub [Compressing files] |
linux:basics [2020/12/21 09:51] (current) mstraub proper switch for ISO 8601 |
||
---|---|---|---|
Line 654: | Line 654: | ||
<code bash> | <code bash> | ||
date # default - a human readable format | date # default - a human readable format | ||
- | date --rfc-3339=date # only the date - similar to ISO 8601 | + | date -I # only the date in ISO 8601 |
- | date --rfc-3339=seconds # date and time - similar to ISO 8601 | + | date -Iseconds # date and time in ISO 8601 |
date +%Y-%m-%dT%H%M # custom format useful for scripts, e.g. 2019-08-14T1129 | date +%Y-%m-%dT%H%M # custom format useful for scripts, e.g. 2019-08-14T1129 | ||
</code> | </code> |