Message304510
| 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:22 | mariocj89 | set | recipients:
+ mariocj89, martin.panter, pablogsal |
| 2017年10月17日 14:07:22 | mariocj89 | set | messageid: <1508249242.42.0.213398074469.issue31800@psf.upfronthosting.co.za> |
| 2017年10月17日 14:07:22 | mariocj89 | link | issue31800 messages |
| 2017年10月17日 14:07:22 | mariocj89 | create |
|