Implemented the 'TimeInterval' operator

Hi, this PR implemented the `TimeInterval` operator #90. Please take a look. Thanks.