docs/src/date.md

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

mercurial