Pyoda Time
Pyoda Time is an alternative date and time API for Python.
It helps you to think about your data more clearly, and express operations on that data more precisely.
This project is a Python port of Noda Time, an alternative DateTime library for .NET (which in turn was inspired by Joda Time).
The project goal is to provide a powerful alternative for time management in Python, drawing inspiration from the strengths of Noda Time and adapting them to a Pythonic API.
Quick Start
Installation:
pip install pyoda-time
Examples:
from pyoda_time import *
# Instant represents time from epoch
now: Instant = SystemClock.instance.get_current_instant()
# Convert an instant to a ZonedDateTime
now_in_iso_utc: ZonedDateTime = now.in_utc()
# Create a duration
duration: Duration = Duration.from_minutes(3)
# Add it to our ZonedDateTime
then_in_iso_utc: ZonedDateTime = now_in_iso_utc + duration
# Time zone support
london = DateTimeZoneProviders.tzdb["Europe/London"]
# Time zone conversions
local_date = LocalDateTime(2012, 3, 27, 0, 45, 0)
before = london.at_strictly(local_date)
For more information, see the docs.
Contributions
Contributions of all kinds are welcome.
If you are interested in contributing to this project, please refer to the guidelines.
Acknowledgements
We express our gratitude to the authors and contributors of Noda Time and Joda Time for their pioneering work in the field of date and time management. Pyoda Time aspires to continue this tradition within the Python ecosystem.
Metadata
Release files for pyoda-time 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyoda_time-0.10.0.tar.gz | 4.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyoda_time-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 MB
Release files / pyoda_time-0.10.0.tar.gz
| Download URL | pyoda_time-0.10.0.tar.gz |
|---|---|
| Size | 4.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24fa956ce326f2a059b26c99a553bb97b63faba67189be2ed79e33c423e6369c
|
|
BLAKE2b-256 checksum How to use checksums |
b9dc01ad630773d4a8904f4b0f0d4f2d91c327b772fb01db234008a8b21bd1f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.18
|
Release files / pyoda_time-0.10.0-py3-none-any.whl
| Download URL | pyoda_time-0.10.0-py3-none-any.whl |
|---|---|
| Size | 431.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5b0247a9ad2117c612f68c149f8b7cd3bf1e3aa76b8848eeb934fe8934e637a
|
|
BLAKE2b-256 checksum How to use checksums |
051a4ac00cfd04dc872dfcd3e46464e957e38dd787e9eb363d21ab801fad1a6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.18
|
Security for pyoda-time 0.10.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.