docs/src/date.md

Sat, 26 Oct 2019 12:38:33 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 26 Oct 2019 12:38:33 +0200
changeset 673
8e7e56cfc103
parent 285
02d3e4b1245f
permissions
-rw-r--r--

adds support for quotes in dav bash completion

* add: url2repo_s()
* add: util_url_base_s()
* change: url2repo() is now wrapper for url2repo_s()
* change: util_url_base() is now wrapper for util_url_base_s()

---
title: 'dav date'
---

**`dav date [url]`**

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.

The *url* can be any http url. If no *url* is specified, the local time is used.

### Example: incremental dav get

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*.

	$ dav get -R myserv/col/
	...
	$ dav date myserv > last_get
	
After some resources are changed on the server, you can download only the modified files.

	$ dav get -R -u `cat last_get` myserv/col/


mercurial