mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nsh_timcmds: display date using set format
Reference: https://www.geeksforgeeks.org/date-command-linux-examples/?ref=gcse#9-list-of-format-specifiers-used-with-date-command Signed-off-by: yangjian11 <yangjian11@xiaomi.com>
This commit is contained in:
@@ -182,7 +182,7 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_DATE
|
||||
CMD_MAP("date", cmd_date,
|
||||
1, 4, "[-s \"MMM DD HH:MM:SS YYYY\"] [-u]"),
|
||||
1, 4, "[-s \"MMM DD HH:MM:SS YYYY\"] [-u] [+format]"),
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_DD
|
||||
|
Reference in New Issue
Block a user