64 |
64 |
65 <!-- begin content --> |
65 <!-- begin content --> |
66 <div class="content"> |
66 <div class="content"> |
67 <h1 id="dav-date">dav date</h1> |
67 <h1 id="dav-date">dav date</h1> |
68 <p><strong><code>date [url]</code></strong></p> |
68 <p><strong><code>date [url]</code></strong></p> |
69 <p>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 <code>-U</code> option for the <code>list</code> and <code>get</code> command.</p> |
69 <p>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 <code>-U</code> option for the <code>list</code> and <code>get</code> command.</p> |
70 <p>The <em>url</em> can be any http url. If no <em>url</em> is specified, the local time is used.</p> |
70 <p>The <em>url</em> can be any http url. If no <em>url</em> is specified, the local time is used.</p> |
71 <h3 id="example-incremental-dav-get">Example: incremental dav get</h3> |
71 <h3 id="example-incremental-dav-get">Example: incremental dav get</h3> |
72 <p>It is possible to download only resources, which are modified since a specified date. The <em>date</em> command allows you to easily store the date of the last <em>get</em>.</p> |
72 <p>It is possible to download only resources, which are modified since a specified date. The <em>date</em> command allows you to easily store the date of the last <em>get</em>.</p> |
73 <pre><code>$ dav get -R myserv/col/ |
73 <pre><code>$ dav get -R myserv/col/ |
74 ... |
74 ... |