1. corrected compilation of wxTime/wxDate
2. wxDateTime::Format() seems to work (look at it to see why I'm so happy) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -222,11 +222,21 @@ wxTimeSpan wxDateTime::Substract(const wxDateTime& datetime) const
|
||||
return wxTimeSpan(datetime.GetValue() - GetValue());
|
||||
}
|
||||
|
||||
wxDateTime wxDateTime::Add(const wxDateSpan& diff) const
|
||||
{
|
||||
return wxDateTime(*this).Add(diff);
|
||||
}
|
||||
|
||||
wxDateTime& wxDateTime::Substract(const wxDateSpan& diff)
|
||||
{
|
||||
return Add(diff.Negate());
|
||||
}
|
||||
|
||||
wxDateTime wxDateTime::Substract(const wxDateSpan& diff) const
|
||||
{
|
||||
return wxDateTime(*this).Substract(diff);
|
||||
}
|
||||
|
||||
wxDateTime& wxDateTime::operator-=(const wxDateSpan& diff)
|
||||
{
|
||||
return Substract(diff);
|
||||
|
Reference in New Issue
Block a user