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

precisedelta: 1 hour and 1 minutes · Issue #20 · python-humanize/humanize · GitHub

precisedelta: 1 hour and 1 minutes #20

Description

What did you do?

Ran the following code:

import datetime as dt
import humanize

seconds = 3633
delta = dt.timedelta(seconds=seconds)

words = humanize.precisedelta(delta, minimum_unit='minutes', format="%0.0f")
print(words)

What did you expect to happen?

Output to be:
1 hour and 1 minute

What actually happened?

Output was:
1 hour and 1 minutes

What versions are you using?

  • OS: Windows 11
  • Python: 3.10.4
  • Humanize: 4.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    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