Skip to content

Fix PCAN timestamp determination across platforms - #2153

Open
swaldhoer wants to merge 2 commits into
hardbyte:mainfrom
swaldhoer:no-uptime-requirement
Open

swaldhoer wants to merge 2 commits into
hardbyte:mainfrom
swaldhoer:no-uptime-requirement

Conversation

@swaldhoer

Copy link
Copy Markdown

Summary of Changes

Use native epoch timestamps on Linux and Windows Vista and newer, with 'uptime' as a fallback for legacy Windows and other platforms.
uptime is no longer maintained; the last update was 11 years ago (https://github.com/Cairnarvon/uptime); the package might still work, but there is a simple path, at least on Windows, to omit this dependency while keeping the meaningful timestamps.

I fixed a test in test/test_scripts.py on the way (maybe I saw this, because I am currently on Windows).

Related Issues / Pull Requests

  • Closes #
  • Related to #

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Other (please describe): omit obsolete dependency

Checklist

  • I have followed the contribution guide.
  • I have added or updated tests as appropriate.
  • I have added or updated documentation as appropriate.
  • I have added a news fragment for towncrier.
  • All checks and tests pass (tox).

Additional Notes

Stefan Waldhör added 2 commits November 24, 2026 23:04
Use native epoch timestamps on Linux and Windows Vista and newer, with
'uptime' as a fallback for legacy Windows and other platforms.
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.

1 participant