cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_getdate

From: Paolo Piacentini <paolopiace_at_hotmail.com>
Date: Sun, 19 Jun 2011 09:22:26 -0700

char *validFormt = "20111641 34:73:00";

This is the 34th hour and 73rd minute of the 41st day of the 16th month of 2011.

curl_getdate(validFormt, NULL) does not fail to parse the string and returns 1273662780.

Is that the way it should work?

I mean, is it up to the user to pre-parse the string and assure that all the digits are within the proper range?

I'm on libcurl/7.19.7 GnuTLS/2.8.5 zlib/1.2.3.3 libidn/1.15

Thank you!
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-19