This adds a new function to the context called when. It takes two parameters: starttime and endtime. It is meant to figure out if the time period (between starttime and endtime) is in the past, present, or future. Actually, those are the strings it returns: 'past'/'present'/'future'.
This requires the package pytz. You have to run pip install -r requirements.txt in order for this to work.
This adds a new function to the context called
when
. It takes two parameters:starttime
andendtime
. It is meant to figure out if the time period (between starttime and endtime) is in the past, present, or future. Actually, those are the strings it returns:'past'/'present'/'future'
.This requires the package pytz. You have to run
pip install -r requirements.txt
in order for this to work.@dpford @rosskarchner