Dot-source the Add-TimeSpan.sp1
file or add the contents to your $PROFILE
.
Add-TimeSpan -Minutes 5
Wednesday, August 10, 2022 3:11:07 AM
Add-TimeSpan -Timestamp '01/01/2022 7:45 PM' -Days 15
Sunday, January 16, 2022 7:45:00 PM
Add-TimeSpan -TimeSpan (New-TimeSpan -Minutes 5 -Hours 10 -Seconds 16)
Wednesday, August 10, 2022 1:14:23 PM