timeago
A very simple python library, used to format datetime with `*** time ago` statement. eg: "3 hours ago".
Decision gist · record as of 2026-08-14
Yes, if you need simple relative time formatting and can tolerate an unmaintained package. The library is stable, has no dependencies, and works for basic use cases. However, do not use it if you require active maintenance, compatibility with the latest Python versions, or ongoing locale updates. For new projects, consider an actively maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- However, the package is abandoned—last commit was 2022-09-14 and no releases since the latest release on 2022-08-18.
- It may work for simple use cases but will not receive maintenance or security updates.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2022-08-18 (1457 days) · last repo commit 2022-09-14 · 226 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,030,880 downloads/mo, #4,470 on PyPI
Alternatives
Verify before relying
import timeago
import datetime
now = datetime.datetime.now()
date = datetime.datetime.now() - datetime.timedelta(minutes=3)
print(timeago.format(date, now)) # prints: 3 minutes ago- Whether the package works correctly with modern Python versions despite classifiers only listing up to 3.5
- Current state of all listed locale implementations and whether they are fully functional
- Whether any breaking changes in Python's datetime module affect this package since 2022-09-14
What it is and what it does
timeago is a minimal library that converts datetime objects, timedeltas, or datetime strings into relative time expressions (e.g., '3 minutes ago', 'in 2 hours', 'just now'). It accepts a date to format, a reference time, and an optional locale code, then returns a human-readable string. The library supports many locales including ar, bg, ca, da, de, el, en, en_short, es, eu, fa_IR, fi, fr, gl, guj_IN, he, hu, in_BG, in_HI, in_ID, is, it, ja, ko, lt, ml, my, nb_NO, nl, nn_NO, pl, pt_PT, pt_BR, ro, ru, sk, sv_SE, ta, th, tr, uk, vi, zh_CN, and zh_TW.
The package has no external runtime dependencies and installs as a pure Python wheel. However, it is no longer maintained—the last commit was 2022-09-14. While it may continue to work for straightforward use cases, it will not receive updates, bug fixes, or compatibility improvements for newer Python versions.
Use it for
- Display activity timestamps in web applications (e.g., 'posted 2 hours ago')
- Format notification or log timestamps for end-user display in multiple languages
- Convert database timestamps to relative time in API responses
- Show relative times in chat or social media interfaces
- Localize time expressions for international audiences without manual translation
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need simple relative time formatting and can tolerate an unmaintained package.
The library is stable, has no dependencies, and works for basic use cases. However, do not use it if you require active maintenance, compatibility with the latest Python versions, or ongoing locale updates. For new projects, consider an actively maintained alternative.
Install
timeago on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is abandoned—last commit was 2022-09-14 and no releases since the latest release on 2022-08-18. It may work for simple use cases but will not receive maintenance or security updates.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
import timeago
import datetime
now = datetime.datetime.now()
date = datetime.datetime.now() - datetime.timedelta(minutes=3)
print(timeago.format(date, now)) # prints: 3 minutes ago
Verify before relying
- Whether the package works correctly with modern Python versions despite classifiers only listing up to 3.5
- Current state of all listed locale implementations and whether they are fully functional
- Whether any breaking changes in Python's datetime module affect this package since 2022-09-14
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,457 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,030,880 / month, #4,470 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersNatural Language :: Chinese (Simplified)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.5Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Utilities |
Evidence: timeago-1.0.16-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “relative time formatting”
- timeagoFormats datetime objects and timedeltas into human-readable relative…
- Flask-MomentFlask-Moment adds moment.js date and time formatting to Jinja2…
- jinja2-timeJinja2 extension that adds template tags for working with dates and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also ago · snaptime · humanize · moment · delta · timelib · human-readable · pytimeparse2 · pytimeparse · jinja2-time