digitalmars.D.bugs - [Bug 98] New: std.date.parse month off by one
- d-bugmail puremagic.com (18/18) Apr 10 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=98
- d-bugmail puremagic.com (10/10) Apr 15 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=98
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
--
Apr 10 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=98
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
std.date.MonthFromTime() returns months in the range 0..11, and is supposed to.
I'll fix the documentation.
--
Apr 15 2006








d-bugmail puremagic.com