This patch reports what date formats are supported by the date command.

diff -urwN busybox-1.10.0.orig/include/usage.h busybox-1.10.0/include/usage.h
--- busybox-1.10.0.orig/include/usage.h 2008-03-21 21:31:50.000000000 -0400
+++ busybox-1.10.0/include/usage.h      2008-03-24 11:21:24.000000000 -0400
@@ -574,6 +574,13 @@
      "\n       -s STRING       Set time described by STRING" \
      "\n       -r FILE         Display the last modification time of FILE" \
      "\n       -u              Print or sets Coordinated Universal Time" \
+     "\nRecognized formats:\n" \
+     "\thh:mm:ss\n" \
+     "\thh:mm\n" \
+     "\tmon.day-hh:mm:ss\n" \
+     "\tmon.day-hh:mm\n" \
+     "\tyear.mon.day-hh:mm:ss\n" \
+     "\tyear.mon.day-hh:mm\n"
 
 #define date_example_usage \
        "$ date\n" \
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to