How to increment a date, and how to convert it ?

durumdara at mailpont.hu durumdara at mailpont.hu
Thu Sep 29 11:49:22 EDT 2005


Hi !

1.
I have a code. I want to convert from wx.DatePickerCtrl.Value to 
mx.DateTime.
But I don't know, how to do it simply.

2.
I need to increment this date by 6 days.
How to do it ? (I search for a simple way, like Delphi-s d2:=d1+6)


The code section is:

        from mx import DateTime as mxDT
        v=self.datePickerCtrl1.GetValue()
        print type(v),v # wx._misc.DateTime
        d1=mxDT.Date(2005,01,01)
        print type(d1),d1  # DateTime

Thanks for advance: dd






More information about the Python-list mailing list