Skip to main content
http://delorean.readthedocs.org/en/latest/_static/delorean.png

Delorean: Time Travel Made Easy

Delorean is a library for clearing up the inconvenient truths that arise dealing with datetimes in Python. Understanding that timing is a delicate enough of a problem delorean hopes to provide a cleaner less troublesome solution to shifting, manipulating, and generating datetimes.

Delorean stands on the shoulders of giants: the standard library’s zoneinfo and dateutil

Delorean will provide natural language improvements for manipulating time, as well as datetime abstractions for ease of use. The overall goal is to improve datetime manipulations, with a little bit of software and philosophy.

Pretty much make you a badass time traveller.

Getting Started

Here is the world without a flux capacitor at your side:

from datetime import datetime, timezone
from zoneinfo import ZoneInfo

est = ZoneInfo('US/Eastern')
d = datetime.now(timezone.utc)
d = d.astimezone(est)
return d

Now lets warm up the delorean:

from delorean import Delorean

d = Delorean()
d = d.shift('US/Eastern')
return d

Look at you looking all fly. This was just a test drive: check out out what else delorean can help with in the documentation.

Release files for delorean 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for delorean 2.0.0
File Size Uploaded
delorean-2.0.0.tar.gz 137.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for delorean 2.0.0
File Interpreter ABI Platform
delorean-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 149.5 kB

Release files / delorean-2.0.0.tar.gz

Download URL delorean-2.0.0.tar.gz
Size 137.2 kB
Tags Source
SHA-256 checksum
How to use checksums
63913ec424555a9d47f521a7af3db24a1c2e3b19063fe26e01943f192eab35e9
BLAKE2b-256 checksum
How to use checksums
74dc75b18ada17d90411814cbeec8ae6304ff8422bbc07428ad6e771694a3c96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / delorean-2.0.0-py3-none-any.whl

Download URL delorean-2.0.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da563ee41346f913c0b146a0d4eb0f6e22d3aee76f58ef281e61c421589398a6
BLAKE2b-256 checksum
How to use checksums
8d4af84bf68656d0e7fd2e9f6e10c6487d7b0764372deb6ce04c41d748d0d032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.3.1

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page