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

First wed each month #23

Open
juanfal opened this issue Mar 3, 2022 · 0 comments
Open

First wed each month #23

juanfal opened this issue Mar 3, 2022 · 0 comments

Comments

@juanfal
Copy link

juanfal commented Mar 3, 2022

I don't get it

require 'tickle'

d = Date.today
10.times {|i|
    d = Tickle.parse('1st wed each month', {:start => d })[:next]
    puts d
    d += 24*60*60
}

prints

2022-04-06 12:00:00 +0200
2022-04-07 12:00:00 +0200
2022-04-08 12:00:00 +0200
2022-04-09 12:00:00 +0200
2022-04-10 12:00:00 +0200
2022-04-11 12:00:00 +0200
2022-04-12 12:00:00 +0200
2022-04-13 12:00:00 +0200
2022-04-14 12:00:00 +0200
2022-04-15 12:00:00 +0200

but it should step over months, shouldn't it?

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