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

Timothe Litt via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On 27-Apr-24 20:44, Paul Gilmartin via curl-users wrote:
> man curl tells me:
>     The date expression can be all sorts of date strings
>
> That's pretty vague.  Does it accept ISO 8601, which
> would be my first guess?  It seems not to, but I may
> have mistyped it.  Rather than (or in addition to)
> "all sorts" I'd welcome a single specific format
> which is guaranteed to work.  A strftine() format
> string would be helpful.
>
> Can I suppress a download by supplying a date in the
> future, or will curl regard that as invalid?

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 agree that it would be better if the man page was explicit.


> Timothe Litt
> ACM Distinguished Engineer
> --------------------------
> This communication may not represent the ACM or my employer's views,
> if any, on the matters discussed.

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
OpenPGP_signature.asc (application/pgp-signature, 495 B)
-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEE0UvvF0GpbrNhifE5DTaRiR4XoSQFAmYtnu4FAwAAAAAACgkQDTaRiR4XoSSU
yAf+OMf68wtRzhtikS6ejwd4V0SalpgLklFyLE/WACNJA51PDs+0gw1wj6NIBvMftHGsWge4Q/xv
ulXiJ14gpFciH968pY7C/Y2Opqs8mQe7xE1JvTAvbMrMdIGuqCKz2hS8oTnV58rr4SAT2OrMWkdq
hbJVrEmy0MyUhKtqWYOdSEQECs+jhlv3RaUHEDJS5SU3fhHBbFYIXAOt2XdPjRI78ackB5LOngpt
6kjFKwqCZuS85GjPUZSzQBzfDh75pkb6uk87+hYLwPfNqjwMGbkE7QF6kO7H8AI4TsmUGue+aXwl
DBE9L6jVoiugr9zhsrc/ptX5ijO7g32SJvsK8/iR8g==
=+sJJ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.