aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_date.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_date.c')
-rw-r--r--common/cmd_date.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/cmd_date.c b/common/cmd_date.c
index 2139cebf838..6b752108629 100644
--- a/common/cmd_date.c
+++ b/common/cmd_date.c
@@ -189,4 +189,15 @@ int mk_date (char *datestr, struct rtc_time *tmp)
return (-1);
}
+/***************************************************/
+
+cmd_tbl_t U_BOOT_CMD(DATE) = MK_CMD_ENTRY(
+ "date", 2, 1, do_date,
+ "date - get/set/reset date & time\n",
+ "[MMDDhhmm[[CC]YY][.ss]]\ndate reset\n"
+ " - without arguments: print date & time\n"
+ " - with numeric argument: set the system date & time\n"
+ " - with 'reset' argument: reset the RTC\n"
+);
+
#endif /* CFG_CMD_DATE */