that is an unfortunate misnaming in the datetime module
the datetime module holds:
- datetime
- timedelta
- tzinfo
- time
as "submodules".
web2py uses
import datetime
and then it uses
datetime.datetime.now()
while your code probably does
from datetime import datetime
and then uses
datetim
Il 20/02/14 21:51, Niphlod ha scritto:
> that is an unfortunate misnaming in the datetime module
>
> the datetime module holds:
> - datetime
> - timedelta
> - tzinfo
> - time
> as "submodules".
Thanks Niphold! That was the problem.
I user request.now instead of datetime.now and just import timedelt
2 matches
Mail list logo