UNPKG

@kelvininc/ui-components

Version:
25 lines (24 loc) 1.32 kB
/** * @deprecated Import from '@kelvininc/ui-components/utils/dates' instead */ export { EUnitReference } from '../../utils/relative-time/relative-time.types'; /** Defines how the time calculation should be done */ export var ERelativeTimeComparisonConfig; (function (ERelativeTimeComparisonConfig) { /** Subtract or add an amount of units (day, hour, months, quarters, ...) * but takes into consideration the start and end date * Ex: (last quarter, last week, yesterday) */ ERelativeTimeComparisonConfig["AbsoluteAmountOfUnits"] = "absoluteAmountOfUnits"; /** Subtract or add an amount of units (day, hour, months, quarters, ...) * but compares the unit with current timestamp * Ex: (last 5 minutes, last 24 hours) */ ERelativeTimeComparisonConfig["RelativeAmountOfUnits"] = "relativeAmountOfUnits"; /** Compare a start date (with date, time, or dateTime) with now */ ERelativeTimeComparisonConfig["StartDate"] = "startDate"; /** Compare an end date (with date, time, or dateTime) with now */ ERelativeTimeComparisonConfig["EndDate"] = "endDate"; /** Compare an absolute start date with an end date */ ERelativeTimeComparisonConfig["StartDateEndDate"] = "startDateEndDate"; })(ERelativeTimeComparisonConfig || (ERelativeTimeComparisonConfig = {}));