arrow-py / arrow-py/arrow

Brief parameter for humanize function

Open
#1,001 7 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

This parameter is False by default. When true, it shortens the date and time terms. For example:
```
>>> present = arrow.utcnow()
>>> shift = present.shift(hours=2, minutes=34, seconds=56)
>>> shift.humanize(present, brief=True, only_distance=True)
>>> 2h 34m 56s
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Python humanize function entry point and trace how its date and time terms are currently formatted. Add the optional brief behavior described in the issue, preserving the default output, and verify the example produces shortened terms such as 2h 34m 56s.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.