xref: /aosp_15_r20/external/curl/docs/cmdline-opts/remote-time.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: remote-time
5*6236dae4SAndroid Build Coastguard WorkerShort: R
6*6236dae4SAndroid Build Coastguard WorkerHelp: Set remote file's time on local output
7*6236dae4SAndroid Build Coastguard WorkerCategory: output
8*6236dae4SAndroid Build Coastguard WorkerAdded: 7.9
9*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - remote-name
12*6236dae4SAndroid Build Coastguard Worker  - time-cond
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --remote-time -o foo $URL
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--remote-time`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerMakes curl attempt to figure out the timestamp of the remote file that is
20*6236dae4SAndroid Build Coastguard Workergetting downloaded, and if that is available make the local file get that same
21*6236dae4SAndroid Build Coastguard Workertimestamp.
22