Adding Days to wxDateTime
Posted: Wed Mar 22, 2006 10:06 am
Code: Select all
wxDateTime x(1, wxDateTime::Month(1), 2006);
x+=wxDateSpan::Days(30);
Official forum for the wxWidgets Cross-Platform GUI Toolkit
https://forums.wxwidgets.org/
Code: Select all
wxDateTime x(1, wxDateTime::Month(1), 2006);
x+=wxDateSpan::Days(30);
Code: Select all
for(wxDateTime::Month m = wxDateTime::Jan; m < wxDateTime::Dec; ++m) /* whatever */;
// or
assert(wxDateTime::Jan + 7 == wxDateTime::Aug);