Prerequisites
Steps to reproduce
There is too much difference in the readings of the /usr/bin/uptime and the Get-Uptime cmdlet
PS > uptime -p
up 2 days, 16 hours, 26 minutes
PS > (Get-Uptime).ToString()
1.13:45:12
Expected behavior
Actual behavior
Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.3.0-rc.1
PSEdition Core
GitCommitId 7.3.0-rc.1
OS Linux 6.0.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 29 Oct 2022 14:08:39 +0000
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals

Prerequisites
Steps to reproduce
There is too much difference in the readings of the
/usr/bin/uptimeand theGet-UptimecmdletExpected behavior
Expected equal valuesActual behavior
Different valuesError details
No response
Environment data
Visuals