Repository navigation
Conversation
Use native epoch timestamps on Linux and Windows Vista and newer, with 'uptime' as a fallback for legacy Windows and other platforms.
Fix formatting
AI Review: Fix PCAN timestamp determination across platformsThe Windows path replaces Code
Tests
Documentation
News fragments
Optional
Verdict: request changes |
- Simplify overall implementation (possible due to the packages platform constraints) - Simplify tests - Fix documentation - Remove unrelated test-only fix (follow up PR will be created)
|
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.
uptimeis 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.pyon the way (maybe I saw this, because I am currently on Windows).Related Issues / Pull Requests
Type of Change
Checklist
tox).Additional Notes