how to get next month string?

Yinghe Chen yinghe.chen at
Tue Jul 24 12:32:44 CEST 2007

My bad, for Dec 07, it shall output as JAN08.

"Yinghe Chen" <yinghe.chen at> wrote in message 
news:f84kee$q32$1 at
> Hi,
> Could someone help on how to use python to output the next month string 
> like this?
> "AUG07", suppose now is July 2007.
> I think also need to consider Dec 07 case, it is supposed to output as 
> below:
> "JAN07".
> datetime module seems not supporting the arithmatic operations, any hints?
> Thanks in advance,
> Yinghe Chen

More information about the Python-list mailing list