Gnu date: Difference between revisions
From wikinotes
(Created page with "date formats the current date, or translates between date formats. <source lang="bash"> date -d 'last monday 2pm' date -d 'next monday 2pm' date -d 'today' # alternatively,...") |
No edit summary |
||
Line 1: | Line 1: | ||
date formats the current date, or translates between date formats. | date formats the current date, or translates between date formats.<br> | ||
You may also be interested in [[bsd date]]. | |||
<source lang="bash"> | <source lang="bash"> |
Revision as of 22:52, 6 August 2021
date formats the current date, or translates between date formats.
You may also be interested in bsd date.
date -d 'last monday 2pm'
date -d 'next monday 2pm'
date -d 'today'
# alternatively, if you need a date in iso-8601 format:
date -u +"%Y-%m-%dT%H:%M:%SZ" -d 'next monday 5:30pm'