homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients facundobatista
Date 2014年07月24日.14:41:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406212892.92.0.452471397422.issue22058@psf.upfronthosting.co.za>
In-reply-to
Content
Currently (tested on py3.4):
>>> from datetime import datetime, date
>>> d = datetime.now()
>>> date(d)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
TypeError: an integer is required (got type datetime.datetime)
IMO, it's like doing int(float), a truncation of some info. For example, this is what I want to happen:
>>> d
datetime.datetime(2014, 7, 24, 11, 38, 44, 966613)
>>> date(d)
datetime.date(2014, 7, 24)
History
Date User Action Args
2014年07月24日 14:41:32facundobatistasetrecipients: + facundobatista
2014年07月24日 14:41:32facundobatistasetmessageid: <1406212892.92.0.452471397422.issue22058@psf.upfronthosting.co.za>
2014年07月24日 14:41:32facundobatistalinkissue22058 messages
2014年07月24日 14:41:32facundobatistacreate

AltStyle によって変換されたページ (->オリジナル) /