Skip to content

Add LocalDate::getMonthDay() - #134

Merged
BenMorel merged 2 commits into
brick:mainfrom
joelbutcher:local-date-get-month-day
Oct 3, 2026
Merged

BenMorel merged 2 commits into
brick:mainfrom
joelbutcher:local-date-get-month-day

Conversation

@joelbutcher

Copy link
Copy Markdown
Contributor

Adds LocalDate::getMonthDay(), alongside the existing getYearMonth(), getYearWeek() and getQuarter() getters.

Split out from #133 as discussed: with the now() methods removed, MonthDay becomes reachable from a ZonedClock via $clock->getLocalDate()->getMonthDay().

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.30%. Comparing base (0269970) to head (9efcaf0).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #134   +/-   ##
=========================================
  Coverage     99.30%   99.30%           
- Complexity     1113     1114    +1     
=========================================
  Files            48       48           
  Lines          2458     2460    +2     
=========================================
+ Hits           2441     2443    +2     
  Misses           17       17           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BenMorel
BenMorel merged commit c3cf3ea into brick:main Oct 3, 2026
9 checks passed
@BenMorel

BenMorel commented Oct 3, 2026

Copy link
Copy Markdown
Member

Released as 0.10.1.

@BenMorel

BenMorel commented Oct 3, 2026

Copy link
Copy Markdown
Member

Thank you, @joelbutcher!

joelbutcher added a commit to joelbutcher/date-time that referenced this pull request Oct 4, 2026
…() to setInstant()

atTimeZone() matches Instant::atTimeZone() and LocalDateTime::atTimeZone(),
which also return a different type.

Also update a ZonedClockTest expectation for the full seconds now emitted by
ZonedDateTime::toISOString() (brick#131), and point the MonthDay::now() migration
to LocalDate::getMonthDay() (brick#134).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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