[wxpython-users] Adding a day to a wxDateTime
Werner F. Bruhin
werner.bruhin at free.fr
Wed May 7 11:26:50 PDT 2008
David,
David Anderson wrote:
> Hi How can I add one day?
> For example, I have today mai - 07 - 2008 - wednesday
> How can I make it become may - 08 - 2009 - thursday?
What about:
x = wx.DateTimeFromDMY(01, 05, 2008)
>>> w = x + wx.DateSpan(days=1)
>>> x
<wx.DateTime: "01/06/2008 00:00:00" at _805b2905_p_wxDateTime>
>>> w
<wx.DateTime: "02/06/2008 00:00:00" at _d05b2905_p_wxDateTime>
Werner
More information about the wxpython-users
mailing list