(oDate: CalendarDate)
| 837 | } |
| 838 | |
| 839 | _isWeekend(oDate: CalendarDate): boolean { |
| 840 | const localeData = getCachedLocaleDataInstance(getLocale()); |
| 841 | |
| 842 | const iWeekDay = oDate.getDay(), |
| 843 | iWeekendStart = localeData.getWeekendStart(), |
| 844 | iWeekendEnd = localeData.getWeekendEnd(); |
| 845 | |
| 846 | return (iWeekDay >= iWeekendStart && iWeekDay <= iWeekendEnd) |
| 847 | || (iWeekendEnd < iWeekendStart && (iWeekDay >= iWeekendStart || iWeekDay <= iWeekendEnd)); |
| 848 | } |
| 849 | |
| 850 | /** |
| 851 | * Pre-computes disabled date range timestamps once before the rendering loop. |
no test coverage detected