2016-11-28 08:01:13 +08:00
|
|
|
Long: time-cond
|
|
|
|
Short: z
|
|
|
|
Arg: <time>
|
|
|
|
Help: Transfer based on a time condition
|
|
|
|
Protocols: HTTP FTP
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http ftp
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: -z "Wed 01 Sep 2021 12:18:00" $URL
|
|
|
|
Example: -z "-Wed 01 Sep 2021 12:18:00" $URL
|
|
|
|
Example: -z file $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 5.8
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: etag-compare remote-time
|
2016-11-28 08:01:13 +08:00
|
|
|
---
|
|
|
|
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
|
2021-10-31 23:34:44 +08:00
|
|
|
sorts of date strings or if it does not match any internal ones, it is taken as
|
2016-11-28 08:01:13 +08:00
|
|
|
a filename and tries to get the modification date (mtime) from <file>
|
2021-03-22 23:50:57 +08:00
|
|
|
instead. See the *curl_getdate(3)* man pages for date expression details.
|
2016-11-28 08:01:13 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
than the specified date/time.
|
|
|
|
|
|
|
|
If this option is used several times, the last one will be used.
|