docs/html/date.html

changeset 282
3070d72f54af
parent 281
ddb5e8f2a43d
child 283
0e36bb75a732
equal deleted inserted replaced
281:ddb5e8f2a43d 282:3070d72f54af
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 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> 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 <strong><code>-u</code></strong> 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 ...
75 $ dav date myserv &gt; last_get</code></pre> 75 $ dav date myserv &gt; last_get</code></pre>
76 <p>After some resources are changed on the server, you can download only the modified files.</p> 76 <p>After some resources are changed on the server, you can download only the modified files.</p>
77 <pre><code>$ dav get -R -U `cat last_get` myserv/col/</code></pre> 77 <pre><code>$ dav get -R -u `cat last_get` myserv/col/</code></pre>
78 </div> 78 </div>
79 <!-- end content --> 79 <!-- end content -->
80 </body> 80 </body>
81 </html> 81 </html>

mercurial