Skip to content

Conversation

@skyqrose
Copy link
Contributor

Addresses #1132

And I figured while I was at it I would add the rest of the missing datetime functions from Polars.

I added:

  • day_of_month
  • is_leap_year
  • quarter_of_year (Polars calls this quarter)
  • iso_year
  • nanosecond

I skipped:

I also reordered the functions. They're now sorted by:

  • date: year, month, day
  • Other gregorian calendar functions: is_leap_year, quarter_of_year, day_of_year
  • ISO calendar / week functions: iso_year, week_of_year, day_of_week
  • times: hour, minute, second, nanosecond

And I also made a couple minor tweaks to tests and fixed a typo or two.

Copy link
Member

@billylanchantin billylanchantin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful work, no notes! I always appreciate attention to detail ❤️

@billylanchantin billylanchantin merged commit b35e5a1 into elixir-explorer:main Dec 18, 2025
4 checks passed
@skyqrose skyqrose deleted the datetime-functions branch December 18, 2025 18:56
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.

2 participants