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.
But you're using it has int, the only place its not int is in the file. Which is not right.