• 개요
@angular/common

getLocaleWeekEndRange

함수
사용 중단 권고v18.0부터

Range of week days that are considered the week-end for the given locale.

사용 중단을 권고합니다.

Angular recommends relying on the Intl API for i18n. Intl's getWeekInfo has partial support (Chromium M99 & Safari 17). Libraries like Luxon rely on Intl but fallback on the ISO 8601 definition (Saturday+Sunday) if getWeekInfo is not supported .

API

function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay];
@deprecated

Angular recommends relying on the Intl API for i18n. Intl's getWeekInfo has partial support (Chromium M99 & Safari 17). Libraries like Luxon rely on Intl but fallback on the ISO 8601 definition (Saturday+Sunday) if getWeekInfo is not supported .

@paramlocalestring

A locale code for the locale format rules to use.

@returns[WeekDay, WeekDay]

The range of day values, [startDay, endDay].

상세 내용으로 이동