Message230988
With the following C code:
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
char buf[255];
struct tm tm;
memset(&tm, 0, sizeof(tm));
strptime("20141110", "%Y%m%d%H%M", &tm);
strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M", &tm);
printf("%s\n", buf);
return 0;
}
I get
$ ./a.out
2014-11-10 00:00
So I think Python behavior is wrong. |
|
Date |
User |
Action |
Args |
2014-11-11 00:00:02 | belopolsky | set | recipients:
+ belopolsky, lemburg, ethan.furman, dgorley |
2014-11-11 00:00:02 | belopolsky | set | messageid: <1415664002.7.0.200326723575.issue22840@psf.upfronthosting.co.za> |
2014-11-11 00:00:02 | belopolsky | link | issue22840 messages |
2014-11-11 00:00:02 | belopolsky | create | |
|