Message129663
But this is exactly how strptime in C. Consider this:
#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("123", "%m%d", &tm);
strftime(buf, sizeof(buf), "%d %b %Y %H:%M", &tm);
printf("%s\n", buf);
return 0;
}
This produces output:
03 Dec 1900 00:00
Shouldn't it stay consistent with how C function works? |
|
Date |
User |
Action |
Args |
2011-02-27 22:24:21 | gruszczy | set | recipients:
+ gruszczy, belopolsky, ezio.melotti, ryles |
2011-02-27 22:24:21 | gruszczy | set | messageid: <1298845461.17.0.876887137728.issue5979@psf.upfronthosting.co.za> |
2011-02-27 22:24:20 | gruszczy | link | issue5979 messages |
2011-02-27 22:24:20 | gruszczy | create | |
|