X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53ae92099f3b4226bfcfaff2aa8f304c38183c9d..380a5dd80316202b472967e898feba1386ea5345:/docs/latex/wx/datespan.tex?ds=sidebyside diff --git a/docs/latex/wx/datespan.tex b/docs/latex/wx/datespan.tex index 0794bbe5cd..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,9 +37,9 @@ 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 not give the same date when added to 1 Feb. But +because they don't give the same date when added to 1 Feb. But wxDateSpan::Days(14) is equal to wxDateSpan::Weeks(2) Finally, notice that for adding hours, minutes and so on you don't need this @@ -321,3 +321,4 @@ Returns {\tt true} if this date span is different from the other one. \wxheading{See also} \helpref{operator==}{wxdatespanoperatorequal} +