dates from 2038 or later now return 0x7fffffff when 32 bit time_t is used

This commit is contained in:
Daniel Stenberg
2004-11-11 09:26:09 +00:00
parent 8ef8e949bd
commit cd73a733c7
5 changed files with 20 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ only ones RFC2616 says HTTP applications may use.
.SH RETURN VALUE
This function returns -1 when it fails to parse the date string. Otherwise it
returns the number of seconds as described.
If the year is larger than 2037 on systems with 32 bit time_t, this function
will return 0x7fffffff (since that is the largest possible 31 bit number).
.SH REWRITE
The former version of this function was built with yacc and was not only very
large, it was also never quite understood and it wasn't possible to build with