Skip to content

clarify: 'now' defaults render in the target field's own shape; |format formats month values - #3

Open
delchev wants to merge 1 commit into
mainfrom
clarify/month-now-label-shapes
Open

clarify: 'now' defaults render in the target field's own shape; |format formats month values#3
delchev wants to merge 1 commit into
mainfrom
clarify/month-now-label-shapes

Conversation

@delchev

@delchev delchev commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Editorial clarification - no new constructs. The month/week field types are already specified; two behaviors over them were unstated:

  • defaults: <field>: now (in generates and schedules[].generate): now means "today", rendered in the target field's own shape - a date field gets today's date, a month field the current YYYY-MM, a week field the current YYYY-Www. (Without this, a conforming implementation could emit a date value into a month-typed field.)
  • label |format tokens: a month field's YYYY-MM value formats through the date pattern too - {period|yyyy MMMM} renders "2026 July" - instead of degrading to the raw string.

Both match the reference implementation.

🤖 Generated with Claude Code

…rmat label token formats month values

Editorial clarification of already-specified constructs: the month/week
field types are in the specification, but the 'now' constant's value shape
against them and the |format behavior over a month value were unstated.
Matches the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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