* Modify a timestamp by a certain amount of days/months/years and enforce limits * @param amount * @param unit * @param preserveDate whether to preserve the day of the month (f.e. 15th of March + 1 month = 15th of April) * @protected
(amount: number, unit: string, preserveDate?: boolean)
| 89 | * @protected |
| 90 | */ |
| 91 | _safelyModifyTimestampBy(amount: number, unit: string, preserveDate?: boolean) { |
| 92 | const newDate = modifyDateBy(this._calendarDate, amount, unit, preserveDate); |
| 93 | this._safelySetTimestamp(newDate.valueOf() / 1000); |
| 94 | } |
| 95 | |
| 96 | _getTimestampFromDom(domNode: HTMLElement) { |
| 97 | const oMonthDomRef = domNode.getAttribute("data-sap-timestamp")!; |
no test coverage detected