Adds or subtracts a specified number of hours from a given date.

  • Parameters

    • date: Date

      Date to provide

    • hoursToAddOrSubtract: number

      Amount of hours to add or subtract. Ex: -1 for the previous hour, 1 for the next one.

    Returns Date