spatie / period

Complex period comparisons
https://spatie.be/open-source
MIT License
1.56k stars 72 forks source link

Question: Check per 5 minute interval #37

Closed brogier closed 5 years ago

brogier commented 5 years ago

Hi,

First of all this is a great package! I've been playing with it and I was wondering if it's possible to check per 5 or 10 minute interval instead of per minute. This limits the numbers of checks for a certain time period if it spans a longer time frame.

Kind regards,

Rogier

brendt commented 5 years ago

Can you give a concrete example of when exactly you'd use this?

brogier commented 5 years ago

I have a calendar which displays certain days when people are available. This is a full month calendar and need to check 1 / 2 days per week from 8:00 till 17:00 hour.

Although it's fast i was wondering if I could limit the check per 5 / 10 / 15 minute window as most of my appointments are never less than those numbers.

Thanks for the fast reply 👍

brendt commented 5 years ago

What exactly are you checking? Overlaps? I'm a little confused because this package will compare periods based on their start- and end date.

From what I gather you're looping over the period, and want to change the steps taken per iteration; is that correct?

brendt commented 5 years ago

Closing due to inactivity