Skip to content

Latest commit

 

History

History
101 lines (55 loc) · 5.5 KB

File metadata and controls

101 lines (55 loc) · 5.5 KB
graph LR
    Delorean_Core_Object["Delorean Core Object"]
    Delorean_Public_Interface_Parsing["Delorean Public Interface - Parsing"]
    Delorean_Public_Interface_UTC_Now["Delorean Public Interface - UTC Now"]
    Delorean_Public_Interface_Local_Now["Delorean Public Interface - Local Now"]
    Timezone_Normalization_Utility["Timezone Normalization Utility"]
    Datetime_Localization_Utility["Datetime Localization Utility"]
    Naive_Datetime_Check_Utility["Naive Datetime Check Utility"]
    Date_Shifting_Logic["Date Shifting Logic"]
    Delorean_Public_Interface_Parsing -- "instantiates" --> Delorean_Core_Object
    Delorean_Public_Interface_UTC_Now -- "instantiates" --> Delorean_Core_Object
    Delorean_Public_Interface_Local_Now -- "instantiates" --> Delorean_Core_Object
    Delorean_Core_Object -- "calls" --> Timezone_Normalization_Utility
    Delorean_Core_Object -- "calls" --> Datetime_Localization_Utility
    Delorean_Core_Object -- "calls" --> Naive_Datetime_Check_Utility
    Delorean_Core_Object -- "delegates to" --> Date_Shifting_Logic
    click Delorean_Core_Object href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/delorean/Delorean_Core_Object.md" "Details"
Loading

CodeBoardingDemoContact

Details

The Delorean Core Object subsystem is centered around the delorean.dates.Delorean class. Its boundaries encompass the public interface functions that instantiate Delorean objects and the internal utility functions that Delorean itself utilizes or delegates to for its core functionalities.

Delorean Core Object [Expand]

The fundamental, immutable, timezone-aware datetime object. It encapsulates a standard datetime object and provides a rich set of methods for datetime manipulation (addition, subtraction, shifting), conversion (to naive, epoch), and human-readable output. It serves as the primary data structure and orchestrator for datetime operations within the library.

Related Classes/Methods:

Delorean Public Interface - Parsing

A key public API function that acts as a factory for Delorean objects. It is responsible for parsing various input formats (e.g., strings, timestamps) into a Delorean instance, abstracting the underlying conversion logic.

Related Classes/Methods:

Delorean Public Interface - UTC Now

A public API function providing a convenient way to instantiate a Delorean object representing the current Coordinated Universal Time (UTC).

Related Classes/Methods:

Delorean Public Interface - Local Now

A public API function for creating a Delorean object representing the current local time, handling timezone considerations automatically.

Related Classes/Methods:

Timezone Normalization Utility

An internal helper function primarily used by delorean.dates.Delorean to normalize and consistently handle timezone information across different datetime operations, ensuring timezone awareness.

Related Classes/Methods:

Datetime Localization Utility

An internal utility function that delorean.dates.Delorean uses to apply specific timezone information to a naive datetime object, converting it into a timezone-aware datetime.

Related Classes/Methods:

Naive Datetime Check Utility

An internal helper function called by delorean.dates.Delorean to determine if a given datetime object lacks timezone information, which is crucial for correct timezone handling.

Related Classes/Methods:

Date Shifting Logic

An internal utility function to which delorean.dates.Delorean delegates the complex calculations involved in shifting dates by various intervals (e.g., days, months, years), encapsulating this specific logic.

Related Classes/Methods: