Repository navigation
Write InterImm dates with two-digit month and day (31-01-03) - #5
Merged
Merged
Conversation
- 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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by L · project thread
Before: InterImm dates were written without padding, for example
31-1-3or "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-07before 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
formatInterimmDateandparseInterimmDate. The parser also accepts31-1-3and0031-01-03.interimmTime()now returns anisofield. The MCP toolinterimm_to_earthalso acceptsdate: "31-01-03". The JSON andllms-full.txtare regenerated, and all 19 tests pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01J6QUBjpnDrbJzB9khfJfmc