curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: --time-cond <time> format?

From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Sat, 27 Apr 2024 21:35:32 -0600

On 4/27/24 18:57:18, Timothe Litt via curl-users wrote:

> On 27-Apr-24 20:44, Paul Gilmartin via curl-users wrote:
> ...
> The next sentence of the man page says "See the curl_getdate(3) man pages for date expression details."
>
> https://curl.se/libcurl/c/curl_getdate.html
> .
I found it. Thanks.

> I agree that it would be better if the man page was explicit.
> .
I believe it's all available, but scattered. A hyperlink would
have helped.

At what point do 2-digit years wrap? Is 94 in the past,
and 25 in the future?

Answering my own question, by experiment:
If --time-cond represents a date in the future, no data are
transferred, but --write-output %{filename_effective}
operates. Please don't change this.
  
Interestingly, although no data are transferred, a vestigial
progress bar appears:
   % Total % Received % Xferd Average Speed Time Time Time Current
                                  Dload Upload Total Spent Left Speed
   0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

-- 
Thanks again,
gil
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-04-28