Skip to content

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

@couling

Description

@couling

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