Skip to content

format_timedelta add_direction ignores format #1162

@defkev

Description

@defkev

Overview Description

Steps to Reproduce

from babel.dates import format_timedelta
format_timedelta(timedelta(seconds = 10800), add_direction = True, locale = 'en_US')
format_timedelta(timedelta(seconds = 10800), add_direction = True, format = 'short', locale = 'en_US')
format_timedelta(timedelta(seconds = 10800), add_direction = True, format = 'narrow', locale = 'en_US')

Actual Results

in 3 hours
in 3 hours
in 3 hours

Expected Results

in 3 hours
in 3 hrs
in 3h

Reproducibility

Additional Information

Python 3.13.1 w/ pip install babel

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions