summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-10-31 15:49:05 +0000
committerJim Meyering <jim@meyering.net>1999-10-31 15:49:05 +0000
commitdab2c2f26f28d6818ff421d9cb52f6d3a13ea6d2 (patch)
tree2d0df655ab75f58c4d287c196d949a745b6ede95 /lib/getdate.y
parent4aa83de94e0d64306dc1f0fe242304ddeec71b81 (diff)
downloadcoreutils-dab2c2f26f28d6818ff421d9cb52f6d3a13ea6d2.tar.xz
update a comment from alpha.gnu.org:/home/gd/gnu/lib/getdate.y
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index c698584eb..658da69fc 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -99,7 +99,7 @@ enum { MERam, MERpm, MER24 };
/* Information passed to and from the parser. */
struct parser_control
-{
+{
/* The input string remaining to be parsed. */
const char *input;
@@ -831,7 +831,10 @@ yyerror (char *s ATTRIBUTE_UNUSED)
return 0;
}
-/* ?? */
+/* Parse a date/time string P. Return the corresponding time_t value,
+ or (time_t) -1 if there is an error. P can be an incomplete or
+ relative time specification; if so, use *NOW as the basis for the
+ returned time. */
time_t
get_date (const char *p, const time_t *now)
{