X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fb8086de8d53e3fbf70813f5dfd8e6621dd82ae..9379c0d752144826342fa2688a77aa5cccea3d9b:/docs/latex/wx/datespan.tex diff --git a/docs/latex/wx/datespan.tex b/docs/latex/wx/datespan.tex index ef59165864..6c2e051036 100644 --- a/docs/latex/wx/datespan.tex +++ b/docs/latex/wx/datespan.tex @@ -19,7 +19,7 @@ one month to Feb, 15 -- we want to get Mar, 15, of course). When adding a month to the date, all lesser components (days, hours, ...) won't be changed unless the resulting date would be invalid: for example, -Jan 31 + 1 month will be Feb 28, not (non existing) Feb 31. +Jan 31 + 1 month will be Feb 28, not (non-existing) Feb 31. Because of this feature, adding and subtracting back again the same wxDateSpan will {\bf not}, in general give back the original date: Feb 28 - 1 @@ -37,7 +37,7 @@ days added will be $7*\hbox{weeks} + \hbox{days}$! See also GetTotalDays() function. Equality operators are defined for wxDateSpans. Two datespans are equal if -and only if they both give the same target date when added to {\bf every} +and only if they both give the same target date when added to {\bf every}\rtfsp source date. Thus wxDateSpan::Months(1) is not equal to wxDateSpan::Days(30), because they don't give the same date when added to 1 Feb. But wxDateSpan::Days(14) is equal to wxDateSpan::Weeks(2) @@ -321,3 +321,4 @@ Returns {\tt true} if this date span is different from the other one. \wxheading{See also} \helpref{operator==}{wxdatespanoperatorequal} +