{"id":21118,"library":"delorean","title":"Delorean","description":"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.","status":"maintenance","version":"1.0.0","language":"python","source_language":"en","source_url":"https://github.com/myusuf3/delorean","tags":["datetime","timezone","date-manipulation"],"install":[{"cmd":"pip install delorean","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Required for date parsing and timezone handling.","package":"python-dateutil","optional":false},{"reason":"Required for timezone definitions.","package":"pytz","optional":false}],"imports":[{"note":"The class is capitalized Delorean, not lowercase.","wrong":"from delorean import delorean","symbol":"Delorean","correct":"from delorean import Delorean"},{"note":null,"wrong":null,"symbol":"epoch","correct":"from delorean import epoch"}],"quickstart":{"code":"from delorean import Delorean, epoch\nfrom datetime import datetime\n\nd = Delorean()\nprint(d.datetime)\n\nd2 = Delorean(datetime(2020, 1, 1, 0, 0, 0), timezone='US/Eastern')\nprint(d2.datetime)\n\nprint(Delorean(epoch=1000000000).datetime)","lang":"python","description":"Basic usage: create a Delorean object for the current UTC time, or from a specific datetime with timezone, or from a Unix timestamp."},"warnings":[{"fix":"Use .shift(hours=2) or .next_day() instead of adding timedelta.","message":"Delorean class does not support direct arithmetic, use .shift() or .next_day() etc.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using pendulum or dateutil for actively maintained alternatives.","message":"Some datetime methods may be deprecated in modern Python; Delorean was last updated in 2016.","severity":"deprecated","affected_versions":"1.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use: from delorean import Delorean","cause":"You imported delorean (lowercase) instead of Delorean (capitalized).","error":"ImportError: cannot import name 'Delorean'"},{"fix":"Use epoch=int('1234567890') or epoch=1234567890.","cause":"Passing a string as epoch instead of int/float.","error":"TypeError: an integer is required (got type str)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}