1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

docs: clarify -z/--time-cond with filename (mention mtime)

Original wording could lead users in thinking it tries to
somehow parse the filename for a date expression (like
news_2012_03_05.html). It never mentions that it actually
reads the mtime of the file in filesystem.
This commit is contained in:
Rodrigo Silva (MestreLion) 2012-03-23 10:01:19 -03:00 committed by Daniel Stenberg
parent 456d8db35e
commit c4a8446c70

View File

@ -1628,12 +1628,12 @@ speed-time seconds it gets aborted. speed-time is set with -y and is 30 if
not set. not set.
If this option is used several times, the last one will be used. If this option is used several times, the last one will be used.
.IP "-z, --time-cond <date expression>" .IP "-z/--time-cond <date expression>|<file>"
(HTTP/FTP/FILE) Request a file that has been modified later than the given time (HTTP/FTP) Request a file that has been modified later than the given time and
and date, or one that has been modified before that time. The date expression date, or one that has been modified before that time. The <date expression> can
can be all sorts of date strings or if it doesn't match any internal ones, it be all sorts of date strings or if it doesn't match any internal ones, it is
tries to get the time from a given file name instead! See the taken as a filename and tries to get the modification date (mtime) from <file>
\fIcurl_getdate(3)\fP man pages for date expression details. instead. See the \fIcurl_getdate(3)\fP man pages for date expression details.
Start the date expression with a dash (-) to make it request for a document Start the date expression with a dash (-) to make it request for a document
that is older than the given date/time, default is a document that is newer that is older than the given date/time, default is a document that is newer