Registry / data / delorean

delorean

JSON →
library1.0.0pypypi✓ verified 87d ago

Delorean is a Python library for manipulating datetimes with ease and clarity. Current version 1.0.0 is the first stable release. The project appears to be in maintenance mode with no recent releases since 2016.

pip install delorean
INSTALL
IMPORT
SIG · DELOREAN
D
delorean
datapythonv1.0.0
Install
3.3s avg
Import
117ms
Disk
55MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.104s · 56.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.3s · import 0.130s · 57MB
55MB installed
● package 55MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Delorean
from delorean import Delorean
from delorean import delorean
The class is capitalized Delorean, not lowercase.
epoch
from delorean import epoch

Basic usage: create a Delorean object for the current UTC time, or from a specific datetime with timezone, or from a Unix timestamp.

from delorean import Delorean, epoch from datetime import datetime d = Delorean() print(d.datetime) d2 = Delorean(datetime(2020, 1, 1, 0, 0, 0), timezone='US/Eastern') print(d2.datetime) print(Delorean(epoch=1000000000).datetime)
Debug
Known issues
gotchaDelorean class does not support direct arithmetic, use .shift() or .next_day() etc.
fix
Use .shift(hours=2) or .next_day() instead of adding timedelta.
affects: all
deprecatedSome datetime methods may be deprecated in modern Python; Delorean was last updated in 2016.
fix
Consider using pendulum or dateutil for actively maintained alternatives.
affects: 1.0.0
Errors
Common errors & fixes
ImportError: cannot import name 'Delorean'
You imported delorean (lowercase) instead of Delorean (capitalized).
fix
Use: from delorean import Delorean
TypeError: an integer is required (got type str)
Passing a string as epoch instead of int/float.
fix
Use epoch=int('1234567890') or epoch=1234567890.
Upgrade
Version history
1.0.0latest on PyPI · released Feb 7, 2018
Audit
Dependencies
python-dateutilrequiredRequired for date parsing and timezone handling.
pytzrequiredRequired for timezone definitions.
Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
delorean — pip install delorean · libregistry