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 mark.dickinson
Recipients larry, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach, vstinner, vxgmichel
Date 2020-02-09.14:42:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1581259369.2.0.905718947899.issue39484@roundup.psfhosted.org>
In-reply-to
Content
[Larry]

> It takes *30* bits to store the non-fractional seconds part of the current time in a double

I make it 31. :-)

>>> from datetime import datetime
>>> time_since_epoch = datetime.now() - datetime(1970, 1, 1)
>>> int(time_since_epoch.total_seconds()).bit_length()
31
History
Date User Action Args
2020-02-09 14:42:49mark.dickinsonsetrecipients: + mark.dickinson, lemburg, rhettinger, vstinner, larry, stutzbach, serhiy.storchaka, vxgmichel
2020-02-09 14:42:49mark.dickinsonsetmessageid: <1581259369.2.0.905718947899.issue39484@roundup.psfhosted.org>
2020-02-09 14:42:49mark.dickinsonlinkissue39484 messages
2020-02-09 14:42:49mark.dickinsoncreate