docs/src/date.md

changeset 282
3070d72f54af
parent 281
ddb5e8f2a43d
child 283
0e36bb75a732
equal deleted inserted replaced
281:ddb5e8f2a43d 282:3070d72f54af
1 dav date 1 dav date
2 ======== 2 ========
3 3
4 **`date [url]`** 4 **`date [url]`**
5 5
6 The purpose of this command is to get the current date from a server and print it to stdout (HTTP date format). This in useful in combination with the `-U` option for the `list` and `get` command. 6 The purpose of this command is to get the current date from a server and print it to stdout (HTTP date format). This in useful in combination with the **`-u`** option for the `list` and `get` command.
7 7
8 The *url* can be any http url. If no *url* is specified, the local time is used. 8 The *url* can be any http url. If no *url* is specified, the local time is used.
9 9
10 ### Example: incremental dav get 10 ### Example: incremental dav get
11 11
15 ... 15 ...
16 $ dav date myserv > last_get 16 $ dav date myserv > last_get
17 17
18 After some resources are changed on the server, you can download only the modified files. 18 After some resources are changed on the server, you can download only the modified files.
19 19
20 $ dav get -R -U `cat last_get` myserv/col/ 20 $ dav get -R -u `cat last_get` myserv/col/
21 21
22 22
23 23

mercurial