[wxpython-users] Adding a day to a wxDateTime

David Anderson zerty.david at gmail.com
Wed May 7 11:31:48 PDT 2008


Thanks

On Wed, May 7, 2008 at 3:26 PM, Werner F. Bruhin <werner.bruhin at free.fr>
wrote:

> 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 =3D wx.DateTimeFromDMY(01, 05, 2008)
> >>> w =3D x + wx.DateSpan(days=3D1)
> >>> 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
> _______________________________________________
> wxpython-users mailing list
> wxpython-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200805=
07/3b75dab0/attachment-0001.htm


More information about the wxpython-users mailing list