Maya – Python Datetimes for Humans
Awesome! Timekeeping is hard and I'm glad we now have one more tool do deal with it.<p>One thing that is bothering me is that when you ask for `maya.when('tomorrow')`, or give only a date, you get back a timestamp with millisecond precision, representing 00:00 of that day. I understand this simplifies the implementation, but shouldn't `tomorrow` be a <i>range</i>, from 00:00 to 23:59?<p>Treating imprecise dates as ranges would allow for stuff like<p><pre><code>    # Did this event happen "yesterday" according to the US/Eastern time zone?
    timestamp in maya.when('yesterday', to_timezone='US/Eastern')

    # Get me all events that happened last Friday (UTC)
    [event for event in events if event.time in maya.when('2016-12-16')]
</code></pre>
Maybe I'm being naive, and there's a reason why this won't work, but this seems the way most humans deal with time.<p>PS: it failed to install on Windows, so I opened an issue at <a href="https://github.com/kennethreitz/maya/issues/10" rel="nofollow">https://github.com/kennethreitz/maya/issues/10</a>