65 <!-- begin content --> |
65 <!-- begin content --> |
66 <div class="content"> |
66 <div class="content"> |
67 <div id="header"> |
67 <div id="header"> |
68 <h1 class="title">dav date</h1> |
68 <h1 class="title">dav date</h1> |
69 </div> |
69 </div> |
70 <p><strong><code>date [url]</code></strong></p> |
70 <p><strong><code>dav date [url]</code></strong></p> |
71 <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 <strong><code>-u</code></strong> option for the <code>list</code> and <code>get</code> command.</p> |
71 <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 <strong><code>-u</code></strong> option for the <code>list</code> and <code>get</code> command.</p> |
72 <p>The <em>url</em> can be any http url. If no <em>url</em> is specified, the local time is used.</p> |
72 <p>The <em>url</em> can be any http url. If no <em>url</em> is specified, the local time is used.</p> |
73 <h3 id="example-incremental-dav-get">Example: incremental dav get</h3> |
73 <h3 id="example-incremental-dav-get">Example: incremental dav get</h3> |
74 <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> |
74 <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> |
75 <pre><code>$ dav get -R myserv/col/ |
75 <pre><code>$ dav get -R myserv/col/ |