Skip to content

does include? work?  #175

Description

@wdiechmann

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions