Gets the value that will be used to one cell to another.
(date: D | null)
| 578 | |
| 579 | /** Gets the value that will be used to one cell to another. */ |
| 580 | private _getCellCompareValue(date: D | null): number | null { |
| 581 | if (date) { |
| 582 | // We use the time since the Unix epoch to compare dates in this view, rather than the |
| 583 | // cell values, because we need to support ranges that span across multiple months/years. |
| 584 | const year = this._dateAdapter.getYear(date); |
| 585 | const month = this._dateAdapter.getMonth(date); |
| 586 | const day = this._dateAdapter.getDate(date); |
| 587 | return new Date(year, month, day).getTime(); |
| 588 | } |
| 589 | |
| 590 | return null; |
| 591 | } |
| 592 | |
| 593 | /** Determines whether the user has the RTL layout direction. */ |
| 594 | private _isRtl() { |
no test coverage detected