WeekOfYearExt extension
Extension providing week calculations for Hora.
- on
Properties
-
daysOfIsoWeek
→ List<
Hora> -
Available on Hora, provided by the WeekOfYearExt extension
Gets all days in the current ISO week.no setter -
daysOfWeek
→ List<
Hora> -
Available on Hora, provided by the WeekOfYearExt extension
Gets all days in the current week.no setter - endOfIsoWeek → Hora
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the end of the ISO week.no setter - isoDayOfWeek → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the day of the week in ISO format (1 = Monday, 7 = Sunday).no setter - isoWeek → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the ISO week number (1-53).no setter - isoWeeksInYear → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the number of ISO weeks in this year.no setter - isoWeekYear → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the ISO week year.no setter - localeWeek → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the locale-aware week number.no setter - localeWeekYear → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the locale-aware week year.no setter - startOfIsoWeek → Hora
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the start of the ISO week.no setter - weekOfMonth → int
-
Available on Hora, provided by the WeekOfYearExt extension
Gets the ordinal week of the month (1-5).no setter - weekSpansMonths → bool
-
Available on Hora, provided by the WeekOfYearExt extension
Checks if this week spans two months.no setter - weekSpansYears → bool
-
Available on Hora, provided by the WeekOfYearExt extension
Checks if this week spans two years.no setter
Methods
-
endOfWeekWith(
{WeekConfig config = WeekConfig.iso}) → Hora -
Available on Hora, provided by the WeekOfYearExt extension
Gets the end of the week with configuration. -
isSameIsoWeek(
Hora other) → bool -
Available on Hora, provided by the WeekOfYearExt extension
Checks if this is in the same ISO week as another date. -
isSameWeekWith(
Hora other, {WeekConfig config = WeekConfig.iso}) → bool -
Available on Hora, provided by the WeekOfYearExt extension
Checks if this is in the same week as another date. -
setIsoWeek(
int week) → Hora -
Available on Hora, provided by the WeekOfYearExt extension
Sets the ISO week of year. -
setIsoWeekYear(
int weekYear) → Hora -
Available on Hora, provided by the WeekOfYearExt extension
Sets the ISO week year. -
startOfWeekWith(
{WeekConfig config = WeekConfig.iso}) → Hora -
Available on Hora, provided by the WeekOfYearExt extension
Gets the start of the week with configuration. -
weekOfYear(
{WeekConfig config = WeekConfig.iso}) → int -
Available on Hora, provided by the WeekOfYearExt extension
Gets the week number using a specific configuration. -
weeksInYear(
{WeekConfig config = WeekConfig.iso}) → int -
Available on Hora, provided by the WeekOfYearExt extension
Gets the number of weeks in this year. -
weekYear(
{WeekConfig config = WeekConfig.iso}) → int -
Available on Hora, provided by the WeekOfYearExt extension
Gets the week year using a specific configuration.