Document wxDateTime arithmetic operators.
wxDateTime::operator+() and operator-() were not documented, do it now. Also fix the return value of wxDateTime::Add(). See #15130. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -818,7 +818,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Adds the given date span to this object.
|
Adds the given date span to this object.
|
||||||
*/
|
*/
|
||||||
wxDateTime Add(const wxDateSpan& diff);
|
wxDateTime& Add(const wxDateSpan& diff);
|
||||||
/**
|
/**
|
||||||
Adds the given time span to this object.
|
Adds the given time span to this object.
|
||||||
*/
|
*/
|
||||||
@@ -863,18 +863,39 @@ public:
|
|||||||
Adds the given date span to this object.
|
Adds the given date span to this object.
|
||||||
*/
|
*/
|
||||||
wxDateTime& operator+=(const wxDateSpan& diff);
|
wxDateTime& operator+=(const wxDateSpan& diff);
|
||||||
|
/**
|
||||||
|
Adds the given date span to this object.
|
||||||
|
*/
|
||||||
|
wxDateTime operator+(const wxDateSpan& ds) const;
|
||||||
/**
|
/**
|
||||||
Subtracts the given date span from this object.
|
Subtracts the given date span from this object.
|
||||||
*/
|
*/
|
||||||
wxDateTime& operator-=(const wxDateSpan& diff);
|
wxDateTime& operator-=(const wxDateSpan& diff);
|
||||||
|
/**
|
||||||
|
Subtracts the given date span from this object.
|
||||||
|
*/
|
||||||
|
wxDateTime operator-(const wxDateSpan& ds) const;
|
||||||
/**
|
/**
|
||||||
Adds the given time span to this object.
|
Adds the given time span to this object.
|
||||||
*/
|
*/
|
||||||
wxDateTime& operator+=(const wxTimeSpan& diff);
|
wxDateTime& operator+=(const wxTimeSpan& diff);
|
||||||
|
/**
|
||||||
|
Adds the given time span to this object.
|
||||||
|
*/
|
||||||
|
wxDateTime operator+(const wxTimeSpan& ts) const;
|
||||||
/**
|
/**
|
||||||
Subtracts the given time span from this object.
|
Subtracts the given time span from this object.
|
||||||
*/
|
*/
|
||||||
wxDateTime& operator-=(const wxTimeSpan& diff);
|
wxDateTime& operator-=(const wxTimeSpan& diff);
|
||||||
|
/**
|
||||||
|
Subtracts the given time span from this object.
|
||||||
|
*/
|
||||||
|
wxDateTime operator-(const wxTimeSpan& ts) const;
|
||||||
|
/**
|
||||||
|
Subtracts another date from this one and returns the difference between
|
||||||
|
them as a wxTimeSpan.
|
||||||
|
*/
|
||||||
|
wxTimeSpan operator-(const wxDateTime& dt2) const;
|
||||||
|
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user