Skip to content

Avoid duplicate arithmetic in Calendar.ISO.from_unix/2 - #15861

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:optimize-calendar-from-unix
Sep 5, 2026
Merged

Avoid duplicate arithmetic in Calendar.ISO.from_unix/2#15861
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:optimize-calendar-from-unix

Conversation

@preciz

@preciz preciz commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Assisted-by: Codex:GPT-6

Compute seconds and microseconds together with div_rem/2,
preserving floor division for negative timestamps.

Compute seconds and microseconds together with div_rem/2,
preserving floor division for negative timestamps.

Assisted-by: Codex:GPT-6
@josevalim
josevalim merged commit 1d0094e into elixir-lang:main Sep 5, 2026
15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants