Skip to content

Strange humanize intervals #1240

Description

@fluffy-critter

Issue Description

It seems that the intervals being used for the various thresholds for humanize are a bit strange. For example, on one of my websites, I have a list of upcoming events with both the calendar date and a humanized description. As of today, January 9 2026, there are two events, one on January 24 which appears as "in two weeks" and one on January 25 which appears as "in a month."

15 days (the 24th) is indeed about two weeks away, but 16 days (the 25th) is certainly not a month away - if anything it's also closest to around two weeks away. It isn't even closer to three weeks than two, less alone a month.

System Info

  • 🖥 OS name and version: Linux (Ubuntu 24.04 LTS if that matters)
  • 🐍 Python version: 3.12.3
  • 🏹 Arrow version: 1.4.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions