This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mariocj89
Recipients mariocj89, martin.panter, pablogsal
Date 2017-10-17.14:07:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508249242.42.0.213398074469.issue31800@psf.upfronthosting.co.za>
In-reply-to
Content
Yep, http://man7.org/linux/man-pages/man3/strptime.3.html does support it even if it might look asymetrical.

Example:

           struct tm tm;
           char buf[255];

           memset(&tm, 0, sizeof(struct tm));
           strptime("+00:00", "%z", &tm);
           strftime(buf, sizeof(buf), "%z", &tm);
           puts(buf); // Will print +0000
           exit(EXIT_SUCCESS);

Martin do you want me to "cleanup" the PR, add docs, news entry, etc?
History
Date User Action Args
2017-10-17 14:07:22mariocj89setrecipients: + mariocj89, martin.panter, pablogsal
2017-10-17 14:07:22mariocj89setmessageid: <1508249242.42.0.213398074469.issue31800@psf.upfronthosting.co.za>
2017-10-17 14:07:22mariocj89linkissue31800 messages
2017-10-17 14:07:22mariocj89create