Skip to content

Add time_slots and TimeWindow for issue #481#552

Closed
anurag-mds wants to merge 8 commits intoJuliaStats:masterfrom
anurag-mds:time-slots-issue-481
Closed

Add time_slots and TimeWindow for issue #481#552
anurag-mds wants to merge 8 commits intoJuliaStats:masterfrom
anurag-mds:time-slots-issue-481

Conversation

@anurag-mds
Copy link
Copy Markdown
Contributor

Implements the API proposed in #481 .

time_slots(start, stop, interval; from, to) — generates a TimeArray of timestamps within a daily time window
time_slots(range; from, to) — same, accepts a StepRange{DateTime} directly
when(ta, time_slots(; from, to)) — filters an existing TimeArray by time-of-day via the new TimeWindow type

Closes #481

@anurag-mds anurag-mds closed this Mar 10, 2026
@anurag-mds anurag-mds deleted the time-slots-issue-481 branch March 10, 2026 11:17
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.19%. Comparing base (3291223) to head (73a3c44).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #552      +/-   ##
==========================================
+ Coverage   85.44%   86.19%   +0.75%     
==========================================
  Files          11       13       +2     
  Lines         625      898     +273     
==========================================
+ Hits          534      774     +240     
- Misses         91      124      +33     

☔ View full report in Codecov by Sentry.
📢 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.

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.

Time slots iterators and helper functions

2 participants