@coveo/headless-react
    Preparing search index...

    Interface RelativeDate

    Defines a date relative to the current moment.

    interface RelativeDate {
        amount?: number;
        period: RelativeDatePeriod;
        unit?: RelativeDateUnit;
    }
    Index

    Properties

    Properties

    amount?: number

    The amount of the unit of time. When period is set as now, the amount does not have to be defined.

    The relative period of time.

    The unit of time in which the date is set relative to. When period is set as now, the unit does not have to be defined.