Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does include? work? #175

Open
wdiechmann opened this issue Jul 9, 2024 · 0 comments
Open

does include? work? #175

wdiechmann opened this issue Jul 9, 2024 · 0 comments

Comments

@wdiechmann
Copy link

In my hunt to use Montrose I stumbled upon something which makes me offer the question in the subject:

mortimer(dev)> re = Montrose.r
=> #<Montrose::Recurrence:175b74 {}>
mortimer(dev)> starts = Date.new(2024, 1, 1)
mortimer(dev)> ends = Date.new(2024, 12, 23)
=> Mon, 23 Dec 2024
mortimer(dev)> re = re.daily(month: :july, between: starts..ends)
=> #<Montrose::Recurrence:18554c {:every=>:day, :starts=>2024-01-01 00:00:00 +0100, :until=>2024-12-23 00:00:00 +0100, :month=>[7]}>
mortimer(dev)> re.include? Date.today
=> false
mortimer(dev)> re.include? Time.current
=> false
mortimer(dev)> Time.current
=> Tue, 09 Jul 2024 12:49:54.837515000 UTC +00:00
mortimer(dev)> Date.current
=> Tue, 09 Jul 2024
mortimer(dev)> 

- which is obviously not true

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

No branches or pull requests

1 participant