Skip to content

Keep absolute interrupt times in the future - #293

Open
anxkhn wants to merge 1 commit into
google-deepmind:mainfrom
anxkhn:fix/absolute-time-negative-offset
Open

Keep absolute interrupt times in the future#293
anxkhn wants to merge 1 commit into
google-deepmind:mainfrom
anxkhn:fix/absolute-time-negative-offset

Conversation

@anxkhn

@anxkhn anxkhn commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Normalize non-positive absolute-time offsets to the next occurrence within a simulated day.

Adding one day once was insufficient for offsets more than a day in the past, so parse_absolute_time() could still return a timestamp at or before the current time. Modulo normalization now preserves the strictly-future contract for arbitrarily negative offsets.

Tests

  • Added cases for one-day and multi-day negative offsets
  • Verified every result is strictly after the current time

@anxkhn

anxkhn commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

hey @jagapiou, could you please review this pr when you have a chance?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants