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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file delorean-2.0.0.tar.gz.
File metadata
- Download URL: delorean-2.0.0.tar.gz
- Upload date:
- Size: 137.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63913ec424555a9d47f521a7af3db24a1c2e3b19063fe26e01943f192eab35e9
|
|
| MD5 |
6cd752f16450605c67228e99e72c28a2
|
|
| BLAKE2b-256 |
74dc75b18ada17d90411814cbeec8ae6304ff8422bbc07428ad6e771694a3c96
|
File details
Details for the file delorean-2.0.0-py3-none-any.whl.
File metadata
- Download URL: delorean-2.0.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da563ee41346f913c0b146a0d4eb0f6e22d3aee76f58ef281e61c421589398a6
|
|
| MD5 |
236accf993227ce547ff9700f7d58a3f
|
|
| BLAKE2b-256 |
8d4af84bf68656d0e7fd2e9f6e10c6487d7b0764372deb6ce04c41d748d0d032
|