From 149d6481295daf4e92c84a1f50cd5598ee96e464 Mon Sep 17 00:00:00 2001 From: Junbo Zheng Date: Mon, 29 Jan 2024 19:37:54 +0800 Subject: [PATCH] Documentation: add `-u` and `+%format` description for date command Reference: - https://github.com/apache/nuttx-apps/pull/745 - https://github.com/apache/nuttx-apps/pull/2273 Signed-off-by: Junbo Zheng --- Documentation/applications/nsh/commands.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/applications/nsh/commands.rst b/Documentation/applications/nsh/commands.rst index 834daf8e8f..aee407611c 100644 --- a/Documentation/applications/nsh/commands.rst +++ b/Documentation/applications/nsh/commands.rst @@ -231,9 +231,10 @@ indication only if the files differ. **Command Syntax**:: - date [-s "MMM DD HH:MM:SS YYYY"] + date [-s "MMM DD HH:MM:SS YYYY"] [-u] [+%format] -**Synopsis**. Show or set the current date and time. +**Synopsis**. Show or set the current date and time or UTC with ``-u`` option, +and support format output with ``+%format``. To show the current system time and date, type in the ``date`` command. The output displays the day of the week, day of the month, month, year,