-
Notifications
You must be signed in to change notification settings - Fork 46
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
Max-time should default to today when parsing the timestamp #31
Comments
ghost
assigned lmarburger
Nov 27, 2013
That's odd. Chronic parses 24- and 12-hour times differently. It's 21:00 right now and "13:00" returns 1pm tomorrow but "1:00pm" returns 1pm today (8 hours ago). |
>> Time.now #=> 2013-11-27 21:28:12 -0500
>> Chronic.parse '13:00' #=> 2013-11-28 13:00:00 -0500
>> Chronic.parse '13:00 today' #=> 2013-11-27 13:00:00 -0500
>> Chronic.parse '1:00' #=> 2013-11-27 13:00:00 -0500 |
That is funny. Nice find. We may be using an ancient |
As far as I can tell, I'm using the latest.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
papertrail --min-time '12:30' --max-time '14:30'
will return results after 14:30 today.A workaround is to explicitly specify
today
:papertrail --min-time '12:30' --max-time 'today 14:30'
The text was updated successfully, but these errors were encountered: