-
Notifications
You must be signed in to change notification settings - Fork 461
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
Parse monday
returns next monday
#295
Comments
that's kinda expected, because by default in next, yet unreleased version (my Chronic.parse('monday', :context => nil)
# 2015-02-09 12:00:00 +0200
Chronic.parse('this monday', :context => nil) # this is debatable if it should be today...
# 2015-02-16 12:00:00 +0200
Chronic.parse('monday at 16:30', :context => nil)
# 2015-02-09 16:30:30 +0200 |
@davispuh Thanks for your answer. |
it's not really implemented so... |
Yes, a flag would do the trick. |
Just noting that I would be interested in this flag functionality as well! |
Refs mojombo#295 This one allows Chronic.parse method to receive `today: true` param alongside a string to parse to allow parsing ambiguous week days by name. E.g.: Time.now #=> Sun Aug 27 23:18:25 PDT 2006 Chronic.parse('sunday') Chronic.parse('sunday', today: true)
Refs mojombo#295 This one allows Chronic.parse method to receive `today: true` param alongside a string to parse to allow parsing ambiguous week days by name. E.g.: Time.now #=> Sun Aug 27 23:18:25 PDT 2006 Chronic.parse('sunday') #=> Sun Sep 03 12:00:00 PDT 2006 Chronic.parse('sunday', today: true) #=> Sun Aug 27 12:00:00 PDT 2006
Any news on this? It has been over a year? |
Today is monday (9. feb. 2015, ~12:20). When parsing
monday
parser returns next monday instead.The text was updated successfully, but these errors were encountered: