Цитата(igor_bogomolov @ 31.3.2009, 17:21)
warning: "31.03.2009"
warning-то как раз тут и интересен!
дата-то все равно не та.
-----
Цитата(LE0N @ 31.3.2009, 17:07)
Жалко, конечно, что такое поведение не документировано...
тут ты не прав:
Цитата
Note that QDate interprets two digit years to be in the 1900s, e.g., 50 will equals 1950.
(второй абзац подробного описания)
и конструктор:
Цитата
QDate::QDate ( int y, int m, int d )
Constructs a date with year y, month m and day d.
If the specified date is invalid, the date is not set and isValid() returns false. A date before 2 January 4713 B.C. is considered invalid.
Warning: Years 1 to 99 are interpreted as being in the 1900s. If you want to specify the year 2010, you must write 2010, not 10.