graph LR
Delorean_Public_Interface["Delorean Public Interface"]
Delorean_Core_Object["Delorean Core Object"]
Internal_Datetime_Utilities["Internal Datetime Utilities"]
Delorean_Public_Interface -- "creates/manipulates" --> Delorean_Core_Object
Delorean_Core_Object -- "utilizes" --> Internal_Datetime_Utilities
Internal_Datetime_Utilities -- "returns processed data to" --> Delorean_Core_Object
Delorean_Public_Interface -- "calls directly" --> Internal_Datetime_Utilities
click Delorean_Core_Object href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/delorean/Delorean_Core_Object.md" "Details"
The delorean project is a Python utility library designed to simplify datetime operations through a clear, facade-driven architecture. It centers around the Delorean Core Object, a timezone-aware datetime wrapper, which is primarily accessed and manipulated via the Delorean Public Interface. This interface provides a user-friendly API, abstracting the complexities of datetime handling. Supporting these two main components are the Internal Datetime Utilities, a set of helper functions responsible for low-level timezone management and precise datetime calculations. This structure ensures a robust and easy-to-use library for managing time-related data, with distinct component boundaries that facilitate clear data and control flow for diagrammatic representation.
Serves as the primary facade, offering a simplified and consistent API for common datetime operations. It acts as the user's direct entry point into the library, abstracting the underlying complexities of datetime handling and the Delorean core object.
Related Classes/Methods:
delorean.interface.parse:15-105delorean.interface.range_daily:108-113delorean.interface.range_hourly:116-121delorean.interface.range_monthly:124-129delorean.interface.range_yearly:132-137delorean.interface.stops:140-170delorean.interface.epoch:173-175delorean.interface.utcnow:182-186delorean.interface.now:189-197
Delorean Core Object [Expand]
The central component of the library, encapsulating a timezone-aware datetime object. It provides the core manipulation capabilities and serves as the primary data structure around which most operations revolve. This object is often instantiated or returned by functions in the Delorean Public Interface.
Related Classes/Methods:
delorean.dates.Delorean:174-613delorean.dates.Delorean.__init__delorean.dates.Delorean.__add__delorean.dates.Delorean.__sub__delorean.dates.Delorean._shift_datedelorean.dates.Delorean.naivedelorean.dates.Delorean.start_of_daydelorean.dates.Delorean.epochdelorean.dates.Delorean.replacedelorean.dates.Delorean.humanize
This component consists of internal helper functions that support the Delorean Core Object by handling low-level datetime and timezone operations. These functions are crucial for ensuring correct timezone awareness, precise datetime manipulations, and interoperability with standard Python datetime objects. They are generally not exposed directly to the end-user.
Related Classes/Methods: