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/seconds interpreted as hours #25

Open
kwhumphreys opened this issue Jun 3, 2021 · 1 comment
Open

minutes/seconds interpreted as hours #25

kwhumphreys opened this issue Jun 3, 2021 · 1 comment

Comments

@kwhumphreys
Copy link

In current version (commit ae31f38), phrases with explicit minutes or seconds are being interpreted as hours:

>>> from timefhuman import timefhuman
>>> timefhuman('in five hours')
datetime.datetime(2021, 6, 3, 5, 0)
>>> timefhuman('in five minutes')
datetime.datetime(2021, 6, 3, 5, 0)
>>> timefhuman('in five seconds')
datetime.datetime(2021, 6, 3, 5, 0)

results should be different for each.

current release (0.0.5) has no results for these phrases.

@kwhumphreys
Copy link
Author

also, number coverage is inconsistent:

>>> timefhuman('in five minutes')
datetime.datetime(2021, 6, 3, 5, 0)
>>> timefhuman('in twenty minutes')
[]

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