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

Ending dates #26

Open
sokser opened this issue Aug 23, 2014 · 0 comments
Open

Ending dates #26

sokser opened this issue Aug 23, 2014 · 0 comments

Comments

@sokser
Copy link

sokser commented Aug 23, 2014

I notice that the following string parses as a start date instead of ending date: "Ending on 12/15/2014"

require "rubygems"
require "nickel.rb"

Parse the string

string = "Ending on 12/15/2014"
results = Nickel.parse(string, Time.now)
puts results.inspect

Results in: message: "", occurrences: [#<Occurrence type: single, start_date: 20141215>]

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