1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-07-07 16:06:50 +02:00

Improve tell-uptime.ps1

This commit is contained in:
Markus Fleschutz
2021-11-24 15:02:54 +01:00
parent aa2416ec1d
commit 2069067870

@ -20,7 +20,7 @@ try {
$Uptime = New-TimeSpan -Start $BootTime.TimeCreated.Date -End $TimeNow
}
$Answer = "$($Uptime.Days) days, $($Uptime.Hours) hours, $($Uptime.Minutes) minutes."
$Answer = "I'm up for $($Uptime.Days) days, $($Uptime.Hours) hours, $($Uptime.Minutes) minutes."
write-output "$Answer"
& "$PSScriptRoot/speak-english.ps1" "$Answer"