FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Negative amounts of time result in `a day` from naturaldelta · Issue #171 · python-humanize/humanize · GitHub

Negative amounts of time result in a day from naturaldelta #171

Description

What did you do?

from humanize import naturaldelta
from datetime import datetime

print(naturaldelta(datetime.now() - datetime.now()))

What did you expect to happen?

a moment

Or some reasonable representation of the tiny amount of time between two consecutive now() calls.

What actually happened?

a day

What versions are you using?

  • OS: Macos
  • Python: 3.10
  • Humanize: 4.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL