kaven-basic - v6.0.0
    Preparing search index...

    Function AddDate

    • Adds a specified amount of time to a given date and returns the resulting Date object.

      Parameters

      • date: Date

        The original date to which the value will be added.

      • value: number

        The amount of time to add.

      • unit: "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks" = "milliseconds"

        The unit of time to add (e.g., milliseconds, seconds, minutes). Defaults to milliseconds.

      Returns Date

      A new Date object with the added time.

      4.0.0

      2021-12-14