blob: 416b16527eee47446ada5e2ff368f5063a6a7a50 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Long: time-cond
4Short: z
5Arg: <time>
6Help: Transfer based on a time condition
7Protocols: HTTP FTP
8Category: http ftp
9Example: -z "Wed 01 Sep 2021 12:18:00" $URL
10Example: -z "-Wed 01 Sep 2021 12:18:00" $URL
11Example: -z file $URL
12Added: 5.8
13See-also: etag-compare remote-time
14Multi: single
15---
16Request a file that has been modified later than the given time and date, or
17one that has been modified before that time. The <date expression> can be all
18sorts of date strings or if it does not match any internal ones, it is taken as
19a filename and tries to get the modification date (mtime) from <file>
20instead. See the *curl_getdate(3)* man pages for date expression details.
21
22Start the date expression with a dash (-) to make it request for a document
23that is older than the given date/time, default is a document that is newer
24than the specified date/time.