Skip to content

Conversation

lautis
Copy link

@lautis lautis commented Jul 22, 2015

This implements time_class option to Chronic.parse. You can still set the global default with Chronic.time_class.

The implementation is a bit brute force-ish. I used options hash given to most handler methods to detect time class, but I later realised that the handlers are always included in an object containing the options hash. Options could be refactored away although then the interface would change there a bit.

Fixes #182.

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

Successfully merging this pull request may close these issues.

1 participant