{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/2"}],"enrichment":{"capability":"DateTimeRange creates and manipulates time range objects, supporting operations like containment checks, intersections, unions, truncation, and iteration over intervals.","skillfed_tags":["datetime-utilities","time-interval-logic"],"use_cases":["Check if a specific timestamp falls within a scheduled maintenance window or business hours range.","Find overlapping time slots when merging calendar events or meeting availability.","Iterate through a date range in monthly or quarterly steps for reporting or data aggregation.","Truncate or split time ranges to align with reporting periods or data collection windows.","Compute the intersection of multiple time ranges to find common availability across resources."],"what_it_does":"DateTimeRange is a Python library for creating and working with time intervals. It wraps datetime objects into range containers that support standard operations\u2014checking whether a specific time falls within a range, finding overlaps between ranges, computing their union or intersection, and iterating through a range at regular intervals. The library handles timezone-aware datetimes and daylight saving time transitions.\n\nYou use it when you need to reason about time spans rather than individual moments: scheduling systems that check availability windows, log analysis that filters events within time bounds, or data pipelines that need to split time series into regular chunks. It depends on python-dateutil for relative date arithmetic and typepy for type validation.","worth_installing":"Yes. DateTimeRange is actively maintained, has no known vulnerabilities, minimal dependencies, and solves a concrete problem in datetime handling that the standard library handles awkwardly. Install it if your code frequently reasons about time intervals, overlaps, or iteration across date ranges."},"id":"datetimerange","links":{"html":"https://skillfed.io/packages/datetimerange","md":"https://skillfed.io/packages/datetimerange.md","pypi":"https://pypi.org/project/datetimerange/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-14","license_spdx":null,"license_treatment":"permissive","name":"DateTimeRange","python_support":"supports_current","summary":"DateTimeRange is a Python library to handle a time range. e.g. check whether a time is within the time range, get the intersection of time ranges, truncate a time range, iterate through a time range, and so forth."},"popularity":{"monthly_downloads":331852,"position":7511,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.3.2"}
