@eleven-am/faker
    Preparing search index...

    Interface DateOptions

    interface DateOptions {
        distribution?: "uniform" | "recent";
        max?: string | number | Date;
        min?: string | number | Date;
        onlyBusinessHours?: boolean;
        onlyWeekdays?: boolean;
    }
    Index

    Properties

    distribution?: "uniform" | "recent"

    Distribution strategy. 'uniform' or 'recent' (favors dates closer to max).

    max?: string | number | Date

    Maximum date (inclusive). Can be Date object, timestamp number, or parsable string. Defaults to now.

    min?: string | number | Date

    Minimum date (inclusive). Can be Date object, timestamp number, or parsable string. Defaults to 1 year ago.

    onlyBusinessHours?: boolean

    If true, only generates dates falling within 9:00 AM to 4:59 PM (local time) on weekdays. Implies onlyWeekdays.

    onlyWeekdays?: boolean

    If true, only generates dates falling on Monday-Friday.