addHours()function

addHours(change: number, target?: PossibleDate, caller: AnyCaller = addHours): Date
ParamType
changenumber
required
targetPossibleDate
Values that can be converted to dates.
callerAnyCaller
Any calling function or constructor, usually referring to something that can call in the current scope that can appear in a stack trace. Defaults to addHours
Return
Date

Return a new date that increase or decreases the hour based on an input date.