Skip to content

feat(de): ISO calendar weeks (KW / Kalenderwoche) - #674

Open
Tzahreddin wants to merge 1 commit into
wanasit:masterfrom
Tzahreddin:feat/de-iso-calendar-week
Open

Tzahreddin wants to merge 1 commit into
wanasit:masterfrom
Tzahreddin:feat/de-iso-calendar-week

Conversation

@Tzahreddin

Copy link
Copy Markdown

Summary

Adds German ISO-8601 calendar week parsing on top of chrono’s relative week units:

  • KW 40, KW40/2026, Kalenderwoche 12, Woche 12/2026
  • Bare week number → reference date’s ISO week-year (does not roll elapsed weeks into next year)
  • Result is a Monday–Sunday range (start/end)

Shared helper: src/calculation/isoWeek.ts (reusable for EN/zh follow-ups).

Related

Out of scope (follow-ups)

  • Calendar Mon–Sun windows for diese/letzte/vorletzte Woche (today those stay duration-relative, consistent with EN)
  • Quarters (Q4 / viertes Quartal)
  • Chinese YYYY-N周 parser for How to parse the value '2024-49周'? #577

Test plan

  • npm test -- --testPathPattern='de_iso_calendar_week'
  • Existing test/de/ still green

Disclosure: This pull request (title, description, and code) was created and written with AI assistance.

Made with Cursor

Add shared isoWeek helpers and a DE parser for KW 40, KW40/2026,
Kalenderwoche N, and Woche N/YYYY. Bare week numbers use the reference
ISO week-year (no roll-forward). Results are Monday–Sunday ranges.

Related to wanasit#577 (ISO week notation).

Note: This commit message was written with AI assistance.
Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant