MCPcopy Create free account
hub / github.com/UI5/webcomponents / _updateSecondTimestamp

Method _updateSecondTimestamp

packages/main/src/YearPicker.ts:307–311  ·  view source on GitHub ↗

* In range selection, the currently focused or hovered year is considered the "second day". * @private

()

Source from the content-addressed store, hash-verified

305 * @private
306 */
307 _updateSecondTimestamp() {
308 if (this.selectionMode === CalendarSelectionMode.Range && (this.selectedDates.length === 1 || this.selectedDates.length === 2)) {
309 this._secondTimestamp = this.timestamp;
310 }
311 }
312
313 /**
314 * Set the hovered day as the "_secondTimestamp".

Callers 2

_modifyTimestampByMethod · 0.95
_selectYearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected