datetime.iterdate
John Lenton
jlenton at gmail.com
Mon Jul 12 07:01:49 EDT 2004
On Sun, 11 Jul 2004 18:57:19 -0700, Robert Brewer <fumanchu at amor.org> wrote:
> Heck, I'd rather just have:
>
> >>> datetime.date(2004, 5, 1) + 1
> datetime.date(2004, 5, 2)
>
> ...but I figured that would be a harder fight. :)
>>> import mx.DateTime
>>> mx.DateTime.Date(2004,5,1)
<DateTime object for '2004-05-01 00:00:00.00' at 40079560>
>>> mx.DateTime.Date(2004,5,1)+1
<DateTime object for '2004-05-02 00:00:00.00' at 40079838>
--
John Lenton (jlenton at gmail.com) -- Random fortune:
bash: fortune: command not found
More information about the Python-list
mailing list