that's why there's `maya.when('yesterday', timezone='US/Eastern')` :)
>>> tomorrow = maya.when('tomorrow')
<MayaDT epoch=1481919067.23>
>>> tomorrow.slang_date()
'tomorrow'
>>> tomorrow.slang_time()
'23 hours from now'
Huh? Given that we never specified timezone, I would expect 24h (unless DST change happens).This is actually my biggest gripe with date+time libs. Imho API should always be explicit in what its default TZ is.
EDIT: still, appreciate what you are doing. Requests rule, and there are many other areas (including datetime) that need libs with better APIs. Thumbs up!
Really, "tomorrow" should be the interval from the beginning of the next calendar date to the end.
i have the feeling his natural answer to both questions is no...
Round to nearest time unit, instead.