Bug 98 – std.date.parse month off by one

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-04-10T21:32:00Z
Last change time
2014-02-15T02:08:48Z
Assigned to
bugzilla
Creator
funisher

Comments

Comment #0 by funisher — 2006-04-10T21:32:03Z
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
Comment #1 by bugzilla — 2006-04-15T03:12:10Z
std.date.MonthFromTime() returns months in the range 0..11, and is supposed to. I'll fix the documentation.