summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-11-30 02:46:55 +0100
committerEike Rathke <erack@redhat.com>2011-11-30 02:46:55 +0100
commit2b2f6abfcc83c4701b42c92c6209a1052324f0a5 (patch)
tree2b0a9fc9bb7872dae5e96fcbceebfeb24bb6f25a /binaryurp
parent7613359985a89a42417a746bcdbb25f072784733 (diff)
introduced Date::IsValidDate() and Date::Normalize()
+ IsValidDate() checks only day and month regarding the year, not Gregorian cut-off date as now does IsValidAndGregorian(). + Normalize() carries over invalid day and month values to next months and years. * All methods that return or internally use a day count now internally normalize the date values, without modifying the actual Date instance. So, if the date is not valid you may get unexpected results. * Previously, a date with month>12 would had accessed the days-of-month array out of bounds on all such methods. So you would had gotten unexpected results anyway.. * Affected methods are: GetDayOfYear() GetWeekOfYear() GetDaysInMonth() static DateToDays()
Diffstat (limited to 'binaryurp')
0 files changed, 0 insertions, 0 deletions