diff options
author | Brendan Coles <bcoles@gmail.com> | 2021-01-07 16:47:16 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-07 20:17:44 +0100 |
commit | fb9eb2054461fd5622e6a80c66af265fba8f62be (patch) | |
tree | 94fb90233c58425f0df4cb8f558c9434eb903864 /Base/usr/share/man/man1 | |
parent | cf9135557b8217ca2883eb43f345759cbe4d8f1e (diff) | |
download | serenity-fb9eb2054461fd5622e6a80c66af265fba8f62be.zip |
date: Use ArgsParser and add ISO8601 / RFC3339 / RFC5322 output formats
Diffstat (limited to 'Base/usr/share/man/man1')
-rw-r--r-- | Base/usr/share/man/man1/date.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Base/usr/share/man/man1/date.md b/Base/usr/share/man/man1/date.md new file mode 100644 index 0000000000..e05d0096a6 --- /dev/null +++ b/Base/usr/share/man/man1/date.md @@ -0,0 +1,32 @@ +## Name + +date - print or set the system date and time + +## Synopsis + +```**sh +$ date [--set date] [--unix] [--iso-8601] [--rfc-3339] [--rfc-5322] +``` + +## Description + +date is a utility to set the system date and time +or print the system date and time in various formats. + +## Options + +* `-s`, `--set`: Set system date and time +* `-u`, `--unix`: Print date as Unix timestamp +* `-i`, `--iso-8601`: Print date in ISO 8601 format +* `-r`, `--rfc-3339`: Print date in RFC 3339 format +* `-R`, `--rfc-5322`: Print date in RFC 5322 format + +## Examples + +```sh +# Print the current date and time in ISO 8601 format +$ date --iso-8601 + +# Set date to 1610017485 (UNIX time) +$ date -s 1610017485 +``` |