summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_parse.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-01 15:09:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-09-01 15:09:49 +0000
commit0c65db21d1bdc2ca3419f947288e08033f890662 (patch)
treec5a3ae24fb1e857edd2ea9b40faddf11a2be7024 /apps/nshlib/nsh_parse.c
parent0ec4fcc28f0c8601c4205d73a7e7f93f44f3c8e3 (diff)
downloadnuttx-0c65db21d1bdc2ca3419f947288e08033f890662.tar.gz
nuttx-0c65db21d1bdc2ca3419f947288e08033f890662.tar.bz2
nuttx-0c65db21d1bdc2ca3419f947288e08033f890662.zip
Add NSH date command
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3932 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib/nsh_parse.c')
-rw-r--r--apps/nshlib/nsh_parse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c
index 82fd01ee4..a193ebc9e 100644
--- a/apps/nshlib/nsh_parse.c
+++ b/apps/nshlib/nsh_parse.c
@@ -158,6 +158,10 @@ static const struct cmdmap_s g_cmdmap[] =
# endif
#endif
+#if defined (CONFIG_RTC) && !defined(CONFIG_DISABLE_CLOCK) && !defined(CONFIG_NSH_DISABLE_DATE)
+ { "date", cmd_date, 1, 3, "[-s \"MMM DD HH:MM:SS YYYY\"]" },
+#endif
+
#if CONFIG_NFILE_DESCRIPTORS > 0
# ifndef CONFIG_NSH_DISABLE_DD
{ "dd", cmd_dd, 3, 6, "if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] [skip=<sectors>]" },