Skip to content

Move the Time constructors and fixed-layout renderers out of time.rs - #1350

Merged
mgomes merged 3 commits into
masterfrom
able/vibe-107-time
Oct 31, 2026
Merged

mgomes merged 3 commits into
masterfrom
able/vibe-107-time

Conversation

@mgomes

@mgomes mgomes commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

VIBE-107. time.rs held the Time.local / utc / at / now / parse constructors and the RFC 3339 and mail-date renderers, while time/format.rs already held the Go layout renderer. No behavior change.

  • year, text and mail_date move to time/format.rs. The moved numeric_zone is renamed numeric_offset so it doesn't clash with format's own layout-token numeric_zone.
  • Constructor moves to a new time/construct.rs, along with the helpers only it uses: raw_int, scaled, Subsecond, unexpected_unit and required_year. The card named only Constructor, but leaving its private helpers behind would have kept constructor code in the parent.

git diff --color-moved shows only moves, apart from that rename, pub(super) on mail_date, and the import lines.

The fixed-layout renderers sat in the parent module while the Go layout
renderer lived in format. The moved numeric_zone is renamed
numeric_offset so it doesn't clash with format's layout-token
numeric_zone.
Time.local, Time.utc, Time.at, Time.now and Time.parse sat in the parent
module. They move with the argument helpers only they use: raw_int,
scaled, Subsecond, unexpected_unit and required_year.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T19:40:37.281081Z cd897b5 Manual request
🔒 Security Review ✅ Completed 2026-10-31T05:38:21.615938Z 7e596a1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

# Conflicts:
#	src/time.rs
#	src/time/format.rs
@mgomes

mgomes commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: cd897b5dcc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mgomes
mgomes merged commit f5e33b9 into master Oct 31, 2026
12 checks passed
@mgomes
mgomes deleted the able/vibe-107-time branch October 31, 2026 20:27
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