Message256479
Actually, nanosecond = dt.microsecond*1000.
I don't think we need 'none' -- you should just extract the date component
and call its isoformat() method if that's what you want.
On Tue, Dec 15, 2015 at 12:01 PM, Alexander Belopolsky <
report@bugs.python.org> wrote:
>
> Alexander Belopolsky added the comment:
>
> > The problem here is that millisecond and nanosecond seems not to be
> attributes of the datetime object.
>
> millisecond = dt.microsecond // 1000
>
> nanosecond = 0 # until we add it to datetime.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue19475>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2015-12-15 20:11:20 | gvanrossum | set | recipients:
+ gvanrossum, lemburg, tim.peters, skip.montanaro, terry.reedy, belopolsky, vstinner, ezio.melotti, r.david.murray, cvrebert, berker.peksag, matrixise, elixir, jerry.elmore, acucci |
2015-12-15 20:11:19 | gvanrossum | link | issue19475 messages |
2015-12-15 20:11:19 | gvanrossum | create | |
|