Skip to content

Months support doesn't seem to work #13

Description

@martinb3

Hello! Based on #7 and the PR #10 from @duramato, I expected to be able to use an expression like "1 month" using the current HEAD, but that doesn't seem to actually work:

$  mkvirtualenv foo
$ workon foo
$ pip install -e -e git://github.com/wroberts
$ pip install -e git://github.com/wroberts/pytimeparse.git@cc0550d3f4ec72d745ef2387603005ab52aa9538#egg=pytimeparse
Obtaining pytimeparse from git+git://github.com/wroberts/pytimeparse.git@cc0550d3f4ec72d745ef2387603005ab52aa9538#egg=pytimeparse
  Cloning git://github.com/wroberts/pytimeparse.git (to cc0550d3f4ec72d745ef2387603005ab52aa9538) to ./.virtualenvs/foo/src/pytimeparse
  Could not find a tag or branch 'cc0550d3f4ec72d745ef2387603005ab52aa9538', assuming commit.
Installing collected packages: pytimeparse
  Running setup.py develop for pytimeparse
Successfully installed pytimeparse
(foo) ➜  ~  python
Python 2.7.12 (default, Jun 29 2016, 14:05:02)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pytimeparse.timeparse import timeparse
>>> timeparse("1 month")
>>> timeparse("30 days")
2592000
>>>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions