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

Minutes / Months #22

Closed
virgodi opened this issue Jun 10, 2016 · 2 comments
Closed

Minutes / Months #22

virgodi opened this issue Jun 10, 2016 · 2 comments

Comments

@virgodi
Copy link

virgodi commented Jun 10, 2016

Hi !

I just wanted to start by thanking you for datefinder, exactly what I was looking.

I think I found a small bug but couldn't understand how to fix it in the source code.

When parsing strings such as:

>>> list(datefinder.find_dates('2 months'))[0]

it parses months as minutes, i.e. :

datetime.datetime(2016, 6, 10, 8, 31, 41, 469126)

If you could have a look at it, it'd be great ! Thanks a lot again !

@akoumjian
Copy link
Owner

I will take a look! This may be an issue with the underlying date parser.
On Fri, Jun 10, 2016 at 01:45 Virgile Audi notifications@github.com wrote:

Hi !

I just wanted to start by thanking you for datefinder, exactly what I was
looking.

I think I found a small bug but couldn't understand how to fix it in the
source code.

When parsing strings such as:

list(datefinder.find_dates('2 months'))[0]

it parses months as minutes, i.e. :

datetime.datetime(2016, 6, 10, 8, 31, 41, 469126)

If you could have a look at it, it'd be great ! Thanks a lot again !


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#22, or mute the thread
https://github.com/notifications/unsubscribe/AAszJFY-MihYVn-5_RgFl7qYTtYaqrzYks5qKSQRgaJpZM4IyvdT
.

@akoumjian
Copy link
Owner

Looking back at this, it looks like you are trying to capture spans of time, rather than specific dates. I'll be tracking this as #171

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

2 participants