Bug introduced in 8.0 and fixed in 9.0
According to the documentation when using DateList
but not giving it a year it should use the current year. It is not doing that for me. Instead it uses 1900. Evaluating the example in the documentation:
DateList[{"2/15", {"Month", "Day"}}]
results in
{1900, 2, 15, 0, 0, 0.}
when I would expect
{2012, 2, 15, 0, 0, 0.}
Am I reading the documentation wrong, or do I have some setting set wrong somewhere, or is this a bug if some kind?
DateList[{"2/15", {"Month", "Day"}}]
has an integer zero in the seconds position, instead of0.
. Very odd! I think you might have found a bug. $\endgroup$DateList[{string, {e1, e2, ...}]
input. Others use the current year. For example,DateList["23 Nov"]
or evenDateList["23/11"]
, although the latter gives a warning that it is ambiguous $\endgroup$DateList[{"2/15", {"Month", "Day"}}]
I get output{2012, 2, 15, 0, 0, 0}
. $\endgroup$