import { Interval } from './interval' ; export class Timerange { constructor ( private from , private to ) { } interval ( interval ) { return new Interval ( this . from , this . to , interval ) ; } } export function timerange ( from , to ) { return new Timerange ( from , to ) ; }