Strange month value for wx.DateTime

And this, in turn, derives from the ISO C run-time library ("struct tm"
in <time.h>), which in turn derived from the original Unix
implementation of the time APIs. wxWidgets could have "fixed" this, but
there is a 35-year-old precedent.

···

On Fri, 06 Oct 2006 11:11:57 -0700, Robin Dunn <robin@alldunn.com> wrote:

Yuan HOng wrote:

It seems that the month value in wx.DateTime starts from 0 for January
and ends at 11 for December, which is very strange. Is this a bug?
   
No, it is unfortunately how it was designed. The C++ code uses an
enumeration for the months, which starts at an integer value of 0.

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.