Skip to content

Write InterImm dates with two-digit month and day (31-01-03) - #5

Merged
emptymalei merged 2 commits into
gh-pagesfrom
claude/iso-dates
Oct 3, 2026
Merged

emptymalei merged 2 commits into
gh-pagesfrom
claude/iso-dates

Conversation

@emptymalei

@emptymalei emptymalei commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Requested by L · project thread

Before: InterImm dates were written without padding, for example 31-1-3 or "Year 31, month 1 (Chunfen), day 3".

After: InterImm dates use a two-digit month and day and leave the year as is: 31-01-03, or -2-12-07 before Year 0. This applies on the page (hero, calendar title, converter), in the <mars-clock-card> widget, in <mars-clock show="date">, in the MCP tool output, and in the daily JSON tables.

How: the library gains formatInterimmDate and parseInterimmDate. The parser also accepts 31-1-3 and 0031-01-03. interimmTime() now returns an iso field. The MCP tool interimm_to_earth also accepts date: "31-01-03". The JSON and llms-full.txt are regenerated, and all 19 tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J6QUBjpnDrbJzB9khfJfmc

- lib: formatInterimmDate / parseInterimmDate, and an `iso` field on
  interimmTime().
- Page, card, <mars-clock show="date">, MCP output and the daily JSON use it;
  interimm_to_earth also accepts date: "0031-01-03".
- Docs, llms.txt and tests updated; JSON and llms-full.txt regenerated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J6QUBjpnDrbJzB9khfJfmc
@emptymalei emptymalei self-assigned this Oct 3, 2026
Month and day stay two digits; the year is written as is. The parser still
accepts padded and unpadded forms.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J6QUBjpnDrbJzB9khfJfmc
@emptymalei emptymalei changed the title Write InterImm dates ISO style with leading zeros (0031-01-03) Write InterImm dates with two-digit month and day (31-01-03) Oct 3, 2026
@emptymalei
emptymalei merged commit bdb030c into gh-pages Oct 3, 2026
2 checks passed
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.

2 participants