New-TimeSpan


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.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net