]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/strtoday.c: strtoday(): Replace obsolete comment
authorAlejandro Colomar <alx@kernel.org>
Tue, 18 Feb 2025 14:21:56 +0000 (15:21 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 30 Apr 2025 08:03:11 +0000 (10:03 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/strtoday.c

index 361ad39ed95882ce162635aa3e7218d3b92edf11..dc682b3932b626cb7df42a0b6339f0f14b842c31 100644 (file)
 #include "string/strspn/stpspn.h"
 
 
-/*
- * strtoday() now uses get_date() (borrowed from GNU shellutils)
- * which can handle many date formats, for example:
- *     1970-09-17      # ISO 8601.
- *     70-9-17         # This century assumed by default.
- *     70-09-17        # Leading zeros are ignored.
- *     9/17/72         # Common U.S. writing.
- *     24 September 1972
- *     24 Sept 72      # September has a special abbreviation.
- *     24 Sep 72       # Three-letter abbreviations always allowed.
- *     Sep 24, 1972
- *     24-sep-72
- *     24sep72
- */
+// string parse-to day-since-Epoch
 long strtoday (const char *str)
 {
        time_t t;