Changed aroundtime to a time window (feature #1400)

@ProfYaffle & @adamsutton I rebased and cleaned up my version of the patch as discussed in the old pull request.
Don't replicate the bug from the old code.

!= 0 is/was a bad idea, since how many minutes are there from midnight if you want to specify midnight ;)