@ma.vu/appdate
    Preparing search index...

    Interface RelativeTimeOptions

    interface RelativeTimeOptions {
        cap?: number;
        fallback?: (date: AppDate) => string;
        fallbackAfterDays?: number;
    }
    Index

    Properties

    cap?: number

    Cap the relative time at this many days. Shows "X+" format after this threshold.

    fallback?: (date: AppDate) => string

    Custom formatter function called when fallbackAfterDays is exceeded. Defaults to toLocalizedDateString().

    fallbackAfterDays?: number

    After this many days, use the fallback formatter instead of relative time.