WWeekOrison
Product

Product features · ISO week-date conversion

01

Keep week-based API fields beside the calendar conversion so the model discussion can distinguish a week-year from a calendar year.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

ISO week-date conversion

● ● ●WeekOrison●
A concrete starting point · ISO week-date conversion ×
from datetime import date
def iso_week_date(year, week, weekday):
    values = (year, week, weekday)
    if any(type(x) is not int for x in values):
        raise ValueError("integer components")
    if not 1 <= year <= 9999:
        raise ValueError("year range")
    if not 1 <= week <= 53 or not 1 <= weekday <= 7:
        raise ValueError("week or weekday range")
    return date.fromisocalendar(year, week, weekday)
✳Convert an ISO week-year, week and weekday to a date with year limits 1–9999.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗