Message304510
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? |
|
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 | |
|