4.7.8
Reliable holidays and deadlines with configurable business and fiscal calendars.
- Holiday lookups now default to offline public-holiday rules. Observed dates are included where supported; cultural or religious observances that are not public holidays are outside this default calendar. The Date, Name, and Type columns remain, with Public holiday as the public source's type label.
- Holidate.Holiday(country_name, year=None, format="list", *, source="public", subdiv=None, observed=True) supports country names, aliases, and ISO alpha-2 codes. Omitting the year selects the current year at call time; an explicit year must be a four-digit integer or string. ListCountries reports the installed provider's supported countries. Results are sorted ISO dates within the requested year: list includes a header row, dict returns a list of records, and df returns a pandas DataFrame. Names are English where the provider supports it.
- Failed holiday lookups now raise HolidayLookupError. Invalid lookup arguments raise TypeError or ValueError. Unknown country names are rejected rather than guessed, with close matches suggested where available. Country and year coverage follows the installed holiday provider.
- Business-day parsing propagates unavailable holiday data as HolidayLookupError instead of returning a deadline with missing exclusions. Invalid calendar configuration raises TypeError/ValueError; unsupported general date expressions can still return None.
- Public holiday rules are supplied by holidays>=0.58,<1. Timezone data is supplied by tzdata on Python 3.9 and newer, with the existing pytz path on Python 3.8. These dependencies support local calendar and timezone operations; network-backed TimeZoner methods retain their external-service requirements.
3.3.0
Reliable temporal parsing with restored service integrations.
- Added the independent packaged agent_profile implementation used for realistic user-agent generation.
- Updated package metadata, documentation, project assets, and release automation.
- Fixed non-ISO time replacement and timezone insertion, including strings such as 2024-03-13 T14:30:00.
- Fixed argument forwarding for ISO time replacement and preservation of the original date/time separator.
- Fixed formatted sequences, numeric week-start values, relative weekday offsets, and repeated-weekend generation.
3.2.4
Clearer documentation and practical examples for core workflows.
- Added dedicated examples for convert_dates, NLP parsing, replace_datestring, and timezone operations.
- Streamlined the README and directed detailed workflows to the new example files.
- Updated maintenance workflow configuration for the 3.2.4 release line.
3.2.3
Stricter time detection with refreshed runtime profiles.
- Updated bundled operating-system profile data.
- Updated bundled browser user-agent versions used by network-backed features.
- Fixed overly permissive time detection by limiting timezone matches to the supported timezone vocabulary.
- Refined date-time scanning behavior in preparation for broader month-abbreviation handling.
- More precise time scanning — Time detection uses a strict timezone whitelist to reduce ambiguous or unsupported matches.
3.2.2
Reliable formatting for date-only inputs.
- Fixed formatting of datetime.date inputs by promoting them to datetime.datetime before applying datetime formatting operations.
- Date-only compatibility — Formatting accepts datetime.date values without requiring callers to convert them first.
- Consistent formatter behavior — Date-only inputs follow the same formatting path as datetime.datetime values.
3.2.1
Natural-language parsing and expanded date-time tooling.
- Reorganized internal modules behind underscore-prefixed package components and updated the public API wiring.
- Expanded the compiled formatting and detection helpers used for cross-platform date and time handling.
- Added automated refresh workflows for operating-system and browser user-agent profile data.
- Updated documentation to cover natural-language date and time handling.
3.0.2
More consistent locale formatting and faster date processing.
- Reorganized internal date, time, timezone, and utility modules while preserving package-level access.
- Refreshed bundled holiday and timezone reference data.
- Removed deprecated project assets from the distribution source.
2.4.0
Holiday lookups and richer timezone operations.
- Added TimeZoner.Object() for named or current timezone objects and timezone-aware datetimes.
- Added TimeZoner.MyTimeZone for local timezone discovery.
- Added Holidate.Holiday() and country discovery for holiday-data workflows.
2.2.0b2
Flexible timezone lookup and local-time discovery.
- Expanded TimeZoner with named and locally detected timezone-object retrieval.
- Added timezone-aware current date and time retrieval.
- Added bundled timezone reference data supporting the expanded lookups.
- Reorganized the beta package layout and internal timezone components.
2.1.4
Cross-platform date-time parsing, validation, and transformation.
- Format detection — Detect and parse a broad range of standard and custom date and time strings.
- Timezone management — Inspect zones, convert between timezones, retrieve current zoned time, and categorize zones by country, offset, or DST behavior.
- Date-string utilities — Extract, validate, replace, or remove individual date, time, and timezone components.
- Cross-platform formatting — Compensates for Windows and Unix differences in leading-zero date format behavior.
- Accelerated internals — Uses Cython and C helpers for performance-sensitive string and date validation operations.