[Python-ideas] Please reconsider the Boolean evaluation of midnight
Donald Stufft
donald at stufft.io
Fri Mar 7 02:25:10 CET 2014
On Mar 6, 2014, at 8:19 PM, Tim Peters <tim.peters at gmail.com> wrote:
> No, it's bizarre to attach a timezone to a time object because most
> tzinfo subclasses don't - and can't - know what to return for the UTC
> offset in the absence of - at least - month and day info too.
It’s completely reasonable to attach a timezone to a time object.
If I schedule an event in a calendar for Mar 7th, at 12pm Eastern, then
absolutely that should be represented as a date time. But what if I want
to schedule an event that occurs every day at 11:30AM EST? There’s
no date associated with it (except an infinite set, or the span of my life
I suppose!) it’s just 11:30AM EST.
-----------------
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140306/80dd4091/attachment-0001.sig>
More information about the Python-ideas
mailing list