April 11, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=98

           Summary: std.date.parse month off by one
           Product: D
           Version: 0.153
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: funisher@gmail.com


it appears that std.date.parse maybe be off by one...

long time = std.date.parse("10/26/00");
printf(std.string.toString(MonthFromTime(time)));

is 9

january is 0, december is 11


-- 

April 15, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=98


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from bugzilla@digitalmars.com  2006-04-15 03:12 -------
std.date.MonthFromTime() returns months in the range 0..11, and is supposed to. I'll fix the documentation.


--