X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2Fgetdate.y;h=658da69fcda14200134889cea2bc5619f3be0625;hb=12fa57c63bbb2fff3a54af4b697fc289ef26a13b;hp=165a2df34882aff1d7aa9507da10e135467e42ba;hpb=a3bbec5628fae789e6785a8cdf86748ba9532112;p=chaz%2Ftar diff --git a/lib/getdate.y b/lib/getdate.y index 165a2df..658da69 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -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) {