moment
Dealing with dates and times should be easy
Decision gist · record as of 2026-08-14
No. While the package has low install friction and a permissive license, it is abandoned (last release 2020-11-27, no commits since 2023-04-24) and explicitly marked as beta-quality. The maintainer recommends arrow or pendulum instead. For new projects, choose an actively maintained alternative; for legacy code already using moment, consider migrating to reduce long-term maintenance risk.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a pure-Python wheel, but the package is abandoned as of 2020-11-27 with no commits since 2023-04-24.
- The last release was over 5 years ago and the project is marked as beta-quality software.
- The maintainer's own documentation recommends considering arrow or pendulum as alternatives.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on commercial or private use, modification, or distribution, only requiring attribution.
last release 2020-11-27 (2086 days) · last repo commit 2023-04-24 · 741 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 310,094 downloads/mo, #7,748 on PyPI
Alternatives
Verify before relying
pip install moment
import moment
# Parse a natural-language date string
moment.date("2 weeks ago")
# Chain operations and format
moment.now().add(days=5).format("YYYY-M-D")- Whether the package's dependencies (dateparser, pytz, times) are themselves maintained and compatible with current Python versions
- Whether the abandoned status and lack of updates since 2020 create compatibility issues with modern Python or dependency versions
- How well the package handles edge cases in date parsing compared to actively maintained alternatives
What it is and what it does
Moment is a wrapper around Python's datetime that provides a fluent, chainable API for date and time manipulation inspired by Moment.js. It uses dateparser to handle natural-language date strings like "2 weeks ago" or "December 18, 2012", and integrates pytz for timezone handling. You can parse dates from strings, Unix timestamps, or datetime objects; add or subtract time units; replace specific components; and format output using either Moment.js-style or strftime-style format strings.
The package is explicitly marked as beta-quality software and has been abandoned since 2020, with the maintainer recommending arrow or pendulum as alternatives in the installation documentation. It supports Python 2.7 and 3.6–3.7 according to its classifiers, and has received no updates in over five years despite having 741 GitHub stars.
Use it for
- Parse user-friendly date strings like "next Monday" or "3 days ago" without manual format specification
- Chain date operations (add weeks, subtract days, replace hours) in a single readable expression
- Convert between timezones and format dates for display using Moment.js-compatible format strings
- Build date arithmetic into scripts where readability matters more than raw performance
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
While the package has low install friction and a permissive license, it is abandoned (last release 2020-11-27, no commits since 2023-04-24) and explicitly marked as beta-quality. The maintainer recommends arrow or pendulum instead. For new projects, choose an actively maintained alternative; for legacy code already using moment, consider migrating to reduce long-term maintenance risk.
Install
moment on PyPI
Before you install
Low install friction with a pure-Python wheel, but the package is abandoned as of 2020-11-27 with no commits since 2023-04-24. The last release was over 5 years ago and the project is marked as beta-quality software. The maintainer's own documentation recommends considering arrow or pendulum as alternatives.
License in practice
MIT license is permissive and imposes no restrictions on commercial or private use, modification, or distribution, only requiring attribution.
Quickstart
pip install moment
import moment
# Parse a natural-language date string
moment.date("2 weeks ago")
# Chain operations and format
moment.now().add(days=5).format("YYYY-M-D")
Verify before relying
- Whether the package's dependencies (dateparser, pytz, times) are themselves maintained and compatible with current Python versions
- Whether the abandoned status and lack of updates since 2020 create compatibility issues with modern Python or dependency versions
- How well the package handles edge cases in date parsing compared to actively maintained alternatives
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesdateparserpytztimes |
| Maintenance | Abandoned 2,086 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 310,094 / month, #7,748 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 1 - PlanningIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7 |
Evidence: moment-0.12.1-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 › “date time parsing library”
- momentA Python library for parsing, manipulating, and formatting dates and…
- metomi-isodatetimeParses and manipulates ISO 8601 date-time strings according to the…
- zope.datetimeParses and formats date/time strings in common formats, providing…
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 arrow · Flask-Moment · timeago · pytz · pendulum · metomi-isodatetime · isodate · reflex-components-moment · jinja2-time · ago