DateTime
This package provides a DateTime data type, as known from Zope. Unless you need to communicate with Zope APIs, you're probably better off using Python's built-in datetime module.
Decision gist · record as of 2026-08-14
Yes, if you are working with Zope or a codebase that already depends on DateTime. No, if you are starting a new project—Python's built-in datetime module is more standard and better documented. The package is mature, actively maintained, has no known vulnerabilities, and installs easily, but its license treatment is unclear and it adds a dependency for functionality that the standard library already provides.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction installation with a pure-Python wheel.
- Actively maintained as of 2025-11-25 with recent commits and support for current Python versions (3.10–3.14).
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License); license treatment is marked unclear in the fact sheet, so review the license terms before use in proprietary or commercial projects.
last release 2025-11-25 (262 days) · last repo commit 2026-03-19 · 19 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 16,702,528 downloads/mo, #1,142 on PyPI
Alternatives
Verify before relying
from DateTime import DateTime
# Current time in US/Eastern timezone
e = DateTime('US/Eastern')
print(e.timezone())
# Parse ISO 8601 date (defaults to UTC)
z = DateTime('2014-03-24')
print(z.parts())- Whether ZPL-2.1 is compatible with your project's license requirements (marked 'unclear' in metadata).
- Performance characteristics when handling large volumes of DateTime objects or frequent timezone conversions.
What it is and what it does
DateTime is a specialized date/time type originating from Zope that encapsulates date and time values with built-in timezone awareness and conversion. It maintains an absolute UTC value internally while allowing representation in any recognized timezone. The package parses a wide variety of date/time string formats (flexible enough to handle North American conventions) and supports numeric operations—subtracting two DateTime objects yields days between them, and adding/subtracting numbers from a DateTime shifts it by that many days.
The package is explicitly positioned as a Zope integration tool; the documentation itself recommends Python's built-in datetime module for most use cases unless you need to communicate with Zope APIs. It depends on zope.interface and pytz, and supports Python 3.10 through 3.14 on both CPython and PyPy. No vulnerabilities are currently known.
Use it for
- Integrating with Zope-based applications or APIs that expect DateTime objects.
- Parsing flexible date/time strings in North American formats without manual validation.
- Converting between multiple timezones while maintaining an immutable absolute time value.
- Performing date arithmetic (adding/subtracting days) on datetime objects.
- Legacy systems or codebases that already use Zope's DateTime and need to continue doing so.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working with Zope or a codebase that already depends on DateTime.
No, if you are starting a new project—Python's built-in datetime module is more standard and better documented. The package is mature, actively maintained, has no known vulnerabilities, and installs easily, but its license treatment is unclear and it adds a dependency for functionality that the standard library already provides.
Install
datetime on PyPI
Before you install
Low friction installation with a pure-Python wheel. Actively maintained as of 2025-11-25 with recent commits and support for current Python versions (3.10–3.14). No known vulnerabilities.
Requires Python 3.10 or later.
License in practice
Licensed under ZPL-2.1 (Zope Public License); license treatment is marked unclear in the fact sheet, so review the license terms before use in proprietary or commercial projects.
Quickstart
from DateTime import DateTime
# Current time in US/Eastern timezone
e = DateTime('US/Eastern')
print(e.timezone())
# Parse ISO 8601 date (defaults to UTC)
z = DateTime('2014-03-24')
print(z.parts())
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license requirements (marked 'unclear' in metadata).
- Performance characteristics when handling large volumes of DateTime objects or frequent timezone conversions.
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageszope.interfacepytz |
| Maintenance | Actively maintained 262 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 16,702,528 / month, #1,142 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 6 - MatureEnvironment :: Web EnvironmentFramework :: Zope :: 5License :: OSI Approved :: Zope Public LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: datetime-6.0-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 › “zope datetime type”
- DateTimeProvides a DateTime data type for working with date and time values,…
- zope.datetimeParses and formats date/time strings in common formats, providing…
- mypy-zopeA mypy plugin that treats zope.interface declarations as types,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also udatetime · zope.datetime · dateformat · pytz · metomi-isodatetime · isodate · times · delorean · django-timezone-field · maya