From: Daniel Stenberg Date: Sun, 28 Apr 2024 21:07:49 +0000 (+0200) Subject: curl_getdate.md: document two-digit year handling X-Git-Tag: curl-8_8_0~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c04664ad350ff0a6792c356b2227e51a7a131494;p=thirdparty%2Fcurl.git curl_getdate.md: document two-digit year handling Mentioned-by: Paul Gilmartin Ref: https://curl.se/mail/archive-2024-04/0014.html Closes #13494 --- diff --git a/docs/libcurl/curl_getdate.md b/docs/libcurl/curl_getdate.md index 4a3849d696..2992dac0f3 100644 --- a/docs/libcurl/curl_getdate.md +++ b/docs/libcurl/curl_getdate.md @@ -47,6 +47,9 @@ Can be specified several ways. Month names can only be three-letter English abbreviations, numbers can be zero-prefixed and the year may use 2 or 4 digits. Examples: 06 Nov 1994, 06-Nov-94 and Nov-94 6. +If the year appears to be below 100 (two-digit), any year after 70 is assumed +to be 1900 + the given year. All others are 2000 + the given year. + ## time of the day items This string specifies the time on a given day. You must specify it with 6