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

    Function SubtractDate

    • Subtracts a specified amount of time from a given date.

      Parameters

      • date: Date

        The original date from which to subtract.

      • value: number

        The amount to subtract from the date.

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

        The unit of time to subtract (e.g., "milliseconds", "seconds", "minutes", etc.). Defaults to "milliseconds".

      Returns Date

      A new Date object with the specified amount of time subtracted.

      4.0.0

      2021-12-14