Skip to content

feat(timezone): add 27 TZ* function docs and learn chapter - #38

Merged
hhimanshu merged 4 commits into
mainfrom
feat/37-timezone-docs
Jun 23, 2026
Merged

feat(timezone): add 27 TZ* function docs and learn chapter#38
hhimanshu merged 4 commits into
mainfrom
feat/37-timezone-docs

Conversation

@hhimanshu

Copy link
Copy Markdown
Contributor

closes #37

Summary

  • Bumps PINNED_CORE_REF to the v2.0.0 tag commit (c5e4701) and @truecalc/core devDependency to 2.0.0
  • Runs gen-docs → 516 function reference pages (up from 489), with 27 new TZ* pages generated
  • Adds enrichment/ YAMLs for all 27 timezone functions: when_to_use Q&A, real use_cases formulas, industry tags, and cross-links
  • Adds content/docs/learn/(advanced)/timezones.mdx: explains zoned instants, DST gaps/folds, TZNOW determinism, UTC-order sorting, and TZWORLDCLOCK vs TZBOARD
  • Updates learn/(advanced)/meta.json and industry hub pages to include the new timezone content

Test plan

  • npm run gen-docs produces no drift (git diff --exit-code -- content/docs/reference/functions)
  • npm run test-docs passes (all marked learn examples execute)
  • npm run build succeeds (static export to out/)
  • All 27 TZ* function pages visible in the Reference tab
  • "Working with timezones" chapter visible in Learn → Advanced

🤖 Generated with Claude Code

- Bump PINNED_CORE_REF to v2.0.0 (c5e4701) and @truecalc/core to 2.0.0
- Run gen-docs: 516 function pages (27 new TZ* stubs generated)
- Add enrichment/ YAMLs for all 27 timezone functions with use-cases,
  when-to-use Q&A, industry tags, and related function cross-links
- Add learn/(advanced)/timezones.mdx: zoned instants, DST gaps/folds,
  TZNOW determinism, UTC-order comparison, TZWORLDCLOCK vs TZBOARD

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hhimanshu hhimanshu self-assigned this Jun 23, 2026
hhimanshu and others added 3 commits June 23, 2026 19:04
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add optional llms_description field to enrichment schema and gen-docs;
  when present it overrides the auto-generated template llmsDescription
  frontmatter that feeds /llms.txt and per-page /llms.mdx routes
- Write practical, query-answering llms_description for all 27 timezone
  functions — each ≤250 chars, states what it returns, key args, and
  what it composes with
- Add "logistics" to KNOWN_INDUSTRIES in lint-enrichment.mjs
- Fix 8 enrichment YAMLs with formula issues found by lint:enrichment:
  TZBOARD/TZTABLE/TZWORLDCLOCK/TZCOMPARETEXT (max 2 extra zones),
  TZLOCALIZE (TODAY() volatile + invalid "raise" policy),
  TZNOW (volatile formulas replaced with TZDATETIME equivalents),
  TZVALID/TZDBVERSION (TZCONVERT wrongly called with 3 args),
  TZINWINDOW (string times replaced with fractional-day numbers)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
v2.0.0 promotes array results (e.g. ARRAY_CONSTRAIN), date arithmetic
results, and zoned datetime values to distinct types. The test-docs
render() switch previously fell through to a throw for any of these,
failing four pre-existing formula and ts test blocks.

- Add `date` handler: renders the serial number as a string
- Add `zoned` handler: returns the RFC-9557 string value
- Add `array` handler: single-element arrays render as their element;
  multi-element arrays join with newline
- Update cross-sheet-references.mdx: v2.0.0 parser now accepts Sheet!A1
  syntax (valid:true); stateless evaluator still returns empty — update
  ts test and surrounding prose to match the new behavior

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hhimanshu
hhimanshu merged commit 43e42eb into main Jun 23, 2026
1 check passed
@hhimanshu
hhimanshu deleted the feat/37-timezone-docs branch June 23, 2026 07:30
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.

D10: Timezone functions — version bump, reference enrichment, and learn chapter

1 participant