Re: py3k: datetime resolution / isoformat

2011-02-26 Thread yves
On 11-02-25 07:49 PM, Ned Deily wrote: datetime.datetime.now().replace(microsecond=0).isoformat() '2011-02-25T18:48:24' Ah, Thanks! -- Yves. http://www.SollerS.ca/ http://blog.zioup.org/ -

Re: py3k: datetime resolution / isoformat

2011-02-25 Thread Chris Rebert
On Fri, Feb 25, 2011 at 6:21 PM, wrote: > > When I do: > >    datetime.datetime.now().isoformat(' ') > > I get the time with the microseconds. The docs says: > "if microsecond is 0 -MM-DDTHH:MM:SS+HH:MM". > > How do I set microsecond to 0? > >     >>> datetime.datetime.microsecond = 0 >    Tr

Re: py3k: datetime resolution / isoformat

2011-02-25 Thread MRAB
On 26/02/2011 02:21, s...@uce.gov wrote: When I do: datetime.datetime.now().isoformat(' ') I get the time with the microseconds. The docs says: "if microsecond is 0 -MM-DDTHH:MM:SS+HH:MM". How do I set microsecond to 0? >>> datetime.datetime.microsecond = 0 Traceback (most recent call l

Re: py3k: datetime resolution / isoformat

2011-02-25 Thread Ned Deily
In article , s...@uce.gov wrote: > When I do: > > datetime.datetime.now().isoformat(' ') > > I get the time with the microseconds. The docs says: > "if microsecond is 0 -MM-DDTHH:MM:SS+HH:MM". > > How do I set microsecond to 0? >>> datetime.datetime.now().replace(microsecond=0).isoform

py3k: datetime resolution / isoformat

2011-02-25 Thread spam
When I do: datetime.datetime.now().isoformat(' ') I get the time with the microseconds. The docs says: "if microsecond is 0 -MM-DDTHH:MM:SS+HH:MM". How do I set microsecond to 0? >>> datetime.datetime.microsecond = 0 Traceback (most recent call last): File "", line 1, i