[Python-ideas] datetime: Support infinity

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Jan 28 05:00:23 CET 2015


On Tue, Jan 27, 2015 at 10:24 PM, Yawar Amin <yawar.amin at gmail.com> wrote:

> Adding datetime.neg_inf() and datetime.pos_inf() should return
> datetime.now().
>

Nah, it should return datetime.utcfromtimestamp(random.randint(-2**32,
2**32)).  Anything else would be a heresy!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150127/0fe68514/attachment.html>


More information about the Python-ideas mailing list