Creates a timespan object.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
New-TimeSpan [
[-Start] <DateTime>] [ [-End] <DateTime>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
New-TimeSpan
[-Days <Int32>] [-Hours <Int32>] [-Minutes <Int32>] [-Seconds <Int32>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The new-timespan Cmdlet creates a timespan object that acts like a defined block of time. You can then add or subtract the time from a DateTime object to create additional DateTime objects.