//core/io.islandtime/fromWeekDate
fromWeekDate¶
common
fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int): Date
Creates a Date from an ISO week date.
Parameters¶
common
year | the week-based year |
week | the week number of the week-based year |
day | the ISO day of week number, 1 (Monday) to 7 (Sunday) |
Throws¶
DateTimeException | if the year, week, or day is invalid |
common
fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int, settings: WeekSettings): Date
Creates a Date from a week date representation using the week definition in settings.
Parameters¶
common
year | the week-based year |
week | the week number of the week-based year |
day | the day of week number, 1-7 |
settings | the week definition to use when interpreting the year, week, and day |
common
fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int, locale: Locale): Date
Creates a Date from a week date representation using the week definition associated with the provided locale.
Parameters¶
common
year | the week-based year |
week | the week number of the week-based year |
day | the day of week number, 1-7 |
locale | the locale providing the week definition to use when interpreting the year, week, and day |