[Python-ideas] Please reconsider the Boolean evaluation of midnight
Chris Angelico
rosuav at gmail.com
Fri Mar 7 02:34:37 CET 2014
On Fri, Mar 7, 2014 at 12:25 PM, Donald Stufft <donald at stufft.io> wrote:
> 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.
Repeating events need their own handling. Maybe it's safe to use
11:30AM local time, but what if you specify 1:30AM America/New_York?
How can you render that onto a calendar? There'll be times when it
breaks - one day a year when it's ambiguous, and one day a year when
it doesn't exist. How can you work with a time that might not exist?
ChrisA
More information about the Python-ideas
mailing list