base_time_window
This module provides base classes and models to manage time windows through time.window.mixin.
Key Features
- time.window.mixin: Defines time windows with start and end times as floats and associated weekdays.
- time.window.mixin: Validates that time windows do not overlap on the same weekdays for the same related record.
- time.window.mixin: Ensures start time is before end time and hours are between 0 and 23.
- time.window.mixin: Provides methods to convert float times to time objects and formatted representations.
- time.window.mixin: Computes display names showing weekdays and time ranges.
- time.weekday: Represents days of the week from Monday to Sunday.
- time.weekday: Calculates the next date matching a specific weekday.