cadrumo.core.time package¶
Canonical time and datetime helpers for the AEAT domain.
This namespace is inert. Import every contract below directly from the module that defines it.
cadrumo.core.time.clock—now()(the current UTC-aware instant),today_madrid()(the current Europe/Madrid civil date, the authority for regulated date-boundary reference-date defaults),MADRID_TZ(Spain’s peninsular civil timezone), and the replay/test-scopedfrozen_clock()seam with itsfrozen_clock()context manager.cadrumo.core.time.utc—parse_iso_datetime()(policy-neutral ISO-8601 parsing),coerce_utc_aware(),validate_utc_aware(), and theUtcInstantpydantic field annotation carrying the same contract declaratively.cadrumo.core.time.date_range—validate_inclusive_date_range()and its serialised-bounds counterpartvalidate_inclusive_iso_date_range().