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 belopolsky
Recipients belopolsky, dgorley, ethan.furman, lemburg
Date 2014-11-11.00:00:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415664002.7.0.200326723575.issue22840@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-11-11 00:00:02belopolskysetrecipients: + belopolsky, lemburg, ethan.furman, dgorley
2014-11-11 00:00:02belopolskysetmessageid: <1415664002.7.0.200326723575.issue22840@psf.upfronthosting.co.za>
2014-11-11 00:00:02belopolskylinkissue22840 messages
2014-11-11 00:00:02belopolskycreate