import {ComputedDayOfField} from '@js-joda/root/packages/locale/src/temporal/WeekFields.js'ComputedDayOfField
Field type that computes DayOfWeek, WeekOfMonth, and WeekOfYear based on a WeekFields. A separate Field instance is required for each different WeekFields; combination of start of week and minimum number of days. Constructors are provided to create fields for DayOfWeek, WeekOfMonth, and WeekOfYear.
Static Method Summary
| Static Public Methods | ||
| public static |
ofDayOfWeekField(weekDef: *): * Returns a field to access the day of week, computed based on a WeekFields. |
|
| public static |
ofWeekBasedYearField(weekDef: *): * Returns a field to access the week-based-year, computed based on a WeekFields. |
|
| public static |
ofWeekOfMonthField(weekDef: *): * Returns a field to access the week of month, computed based on a WeekFields. |
|
| public static |
ofWeekOfWeekBasedYearField(weekDef: *): * Returns a field to access the week of week-based-year, computed based on a WeekFields. |
|
| public static |
ofWeekOfYearField(weekDef: *): * Returns a field to access the week of year, computed based on a WeekFields. |
|
Method Summary
| Public Methods | ||
| public |
adjustInto(temporal: *, newValue: *): * |
|
| public |
baseUnit(): * |
|
| public |
displayName(locale: *): * |
|
| public |
getFrom(temporal: *): * |
|
| public |
isDateBased(): boolean |
|
| public |
isSupportedBy(temporal: *): boolean |
|
| public |
isTimeBased(): boolean |
|
| public |
name(): * |
|
| public |
range(): * |
|
| public |
rangeRefinedBy(temporal: *): * |
|
| public |
rangeUnit(): * |
|
| public |
resolve(fieldValues: *, partialTemporal: *, resolverStyle: *): * |
|
| public |
toString(): string |
|
Static Public Methods
public static ofDayOfWeekField(weekDef: *): * source
Returns a field to access the day of week, computed based on a WeekFields.
The WeekDefintion of the first day of the week is used with the ISO DAY_OF_WEEK field to compute week boundaries.
Params:
| Name | Type | Attribute | Description |
| weekDef | * |
Return:
| * |
public static ofWeekBasedYearField(weekDef: *): * source
Returns a field to access the week-based-year, computed based on a WeekFields.
Params:
| Name | Type | Attribute | Description |
| weekDef | * |
Return:
| * |
public static ofWeekOfMonthField(weekDef: *): * source
Returns a field to access the week of month, computed based on a WeekFields.
Params:
| Name | Type | Attribute | Description |
| weekDef | * |
Return:
| * |
public static ofWeekOfWeekBasedYearField(weekDef: *): * source
Returns a field to access the week of week-based-year, computed based on a WeekFields.
Params:
| Name | Type | Attribute | Description |
| weekDef | * |
Return:
| * |
public static ofWeekOfYearField(weekDef: *): * source
Returns a field to access the week of year, computed based on a WeekFields.
Params:
| Name | Type | Attribute | Description |
| weekDef | * |
Return:
| * |
Public Methods
public adjustInto(temporal: *, newValue: *): * source
Params:
| Name | Type | Attribute | Description |
| temporal | * | ||
| newValue | * |
Return:
| * |
public isSupportedBy(temporal: *): boolean source
Params:
| Name | Type | Attribute | Description |
| temporal | * |
Return:
| boolean |
public rangeRefinedBy(temporal: *): * source
Params:
| Name | Type | Attribute | Description |
| temporal | * |
Return:
| * |
public resolve(fieldValues: *, partialTemporal: *, resolverStyle: *): * source
Params:
| Name | Type | Attribute | Description |
| fieldValues | * | ||
| partialTemporal | * | ||
| resolverStyle | * |
Return:
| * |
