]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_date.c
* Code cleanup:
[people/ms/u-boot.git] / common / cmd_date.c
index 2139cebf8385246756318be06f8d77ed9532fcba..6b7521086295c2ef5c37f5f6381ac1384e1400f7 100644 (file)
@@ -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 */