UNPKG

@eclipse-scout/core

Version:
18 lines 598 B
import { JsonDateRange } from '../index'; export declare class DateRange { from: Date; to: Date; constructor(from?: Date, to?: Date); /** * Checks if given date is covered by the date range. * * If the truncateToDay parameter is set to true, it * truncates the from and to date to day, as well as * the date parameter. */ covers(date: Date, truncateToDay?: boolean): boolean; equals(other: DateRange): boolean; toString(): string; static ensure(dateRange: DateRange | JsonDateRange): DateRange; } //# sourceMappingURL=DateRange.d.ts.map