]> granicus.if.org Git - curl/commitdiff
docs: clarify -z/--time-cond with filename (mention mtime)
authorRodrigo Silva (MestreLion) <linux@rodrigosilva.com>
Fri, 23 Mar 2012 13:01:19 +0000 (10:01 -0300)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Mar 2012 22:13:27 +0000 (23:13 +0100)
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.

docs/curl.1

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