Time Intervals (issue #25)

Anthoni, it would be nice if you had time to review my code before we merge it in the main repo. :)
Thanks,
Eric.