addHours()function
addHours(change: number, target?: PossibleDate, caller: AnyCaller = addHours): Date
| Param | Type | |
|---|---|---|
change | number | required |
target | PossibleDate | Values that can be converted to dates. |
caller | AnyCaller | 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.