Index: uspace/app/date/date.c
===================================================================
--- uspace/app/date/date.c	(revision 0885f7e7ca67ef126dce91bf140c9ec7e9f04289)
+++ uspace/app/date/date.c	(revision ad2718d32d5618aa1ea949732538d8f3f151708a)
@@ -194,4 +194,7 @@
 }
 
+/** Read the day, month and year from a string
+ *  with the following format: DD/MM/YYYY
+ */
 static int
 read_date_from_arg(char *wdate, struct tm *t)
@@ -199,5 +202,5 @@
 	int rc;
 
-	if (str_size(wdate) != 10) /* DD/MM/YYYY */
+	if (str_size(wdate) != 10) /* str_size("DD/MM/YYYY") == 10 */
 		return EINVAL;
 
@@ -221,4 +224,7 @@
 }
 
+/** Read the hours, minutes and seconds from a string
+ *  with the following format: HH:MM:SS or HH:MM
+ */
 static int
 read_time_from_arg(char *wtime, struct tm *t)
@@ -226,7 +232,9 @@
 	int rc;
 	size_t len = str_size(wtime);
-	bool sec_present = len > 5;
-
-	if (len > 8 || len < 5) /* HH:MM[:SS] */
+	bool sec_present = len == 8;
+
+	/* str_size("HH:MM") == 5 */
+	/* str_size("HH:MM:SS") == 8 */
+	if (len != 8 && len != 5)
 		return EINVAL;
 
