Skip to content

feat: add support for DateTimeOffset in abstractions#1048

Merged
vbreuss merged 1 commit into
mainfrom
feat/datetimeoffset-interface
Jul 10, 2026
Merged

feat: add support for DateTimeOffset in abstractions#1048
vbreuss merged 1 commit into
mainfrom
feat/datetimeoffset-interface

Conversation

@vbreuss

@vbreuss vbreuss commented Jul 10, 2026

Copy link
Copy Markdown
Member

Introduces a new time-system abstraction for System.DateTimeOffset, aligning it with the existing ITimeSystem pattern and extending parity tests to cover the new API.

  • Introduces IDateTimeOffset (exposing MaxValue, MinValue, UnixEpoch, Now and UtcNow) and wires it into ITimeSystem.
  • Implements real-time support via DateTimeOffsetWrapper and exposes it from RealTimeSystem.
  • Extends parity test helpers/tests to validate IDateTime and IDateTimeOffset against System.DateTime / System.DateTimeOffset (with static-method exclusions for the members that are intentionally not abstracted).

Introduces a new time-system abstraction for `System.DateTimeOffset`,
aligning it with the existing `ITimeSystem` pattern and extending parity
tests to cover the new API.

- Introduces `IDateTimeOffset` (exposing `MaxValue`, `MinValue`,
  `UnixEpoch`, `Now` and `UtcNow`) and wires it into `ITimeSystem`.
- Implements real-time support via `DateTimeOffsetWrapper` and exposes it
  from `RealTimeSystem`.
- Extends parity test helpers/tests to validate `IDateTime` and
  `IDateTimeOffset` against `System.DateTime` / `System.DateTimeOffset`
  (with static-method exclusions for the members that are intentionally
  not abstracted).
@vbreuss vbreuss self-assigned this Jul 10, 2026
@vbreuss vbreuss added the enhancement New feature or request label Jul 10, 2026
@github-actions

Copy link
Copy Markdown

Test Results

12 tests  ±0   12 ✅ ±0   2s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit b94c00f. ± Comparison against base commit b95ea0c.

@vbreuss
vbreuss merged commit 43a4cb6 into main Jul 10, 2026
12 checks passed
@vbreuss
vbreuss deleted the feat/datetimeoffset-interface branch July 10, 2026 23:36
@github-actions

Copy link
Copy Markdown

This is addressed in release v7.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request state: released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant