access_time 4 years ago languageEnglish
Calculate Time Difference between Dates in PowerShell
visibility 21,289 comment 0
PowerShell provides a number of cmdlets to retrieve current date time and to create time span object. $current = Get-Date $end= Get-Date $diff= New-TimeSpan -Start $current -End $end Write-Output "Time difference is: $diff" $current = [System.DateTime]::Now $end= ...
info Last modified by Raymond 4 years ago
No comments yet.