Skip to content

docs(tip-1018): calendar precompile spec#2893

Open
decofe wants to merge 1 commit intomainfrom
dan/tip-1018-calendar-precompile
Open

docs(tip-1018): calendar precompile spec#2893
decofe wants to merge 1 commit intomainfrom
dan/tip-1018-calendar-precompile

Conversation

@decofe
Copy link
Member

@decofe decofe commented Feb 26, 2026

Stateless precompile at 0xCA1E... that decomposes millisecond timestamps into calendar components (year, month, day, hour, minute, second, ms, day-of-week, day-of-year). Includes fromComponents inverse, daysInMonth, and isLeapYear helpers. All pure, all O(1), flat 50 gas.

Replaces BokkyPooBah-style Solidity date math and gives contracts a canonical way to access the millisecond part of Tempo's block timestamps.

Prompted by: dan

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