Adds a timespan to DateTime values.
Add-TimeSpan.ps1 [-TimeSpan] <TimeSpan> [-DateTime] <DateTime> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Get-Date |Add-TimeSpan.ps1 00:00:30
Adds 30 seconds to the current date and time value.
The TimeSpan value to add.
Type: TimeSpan
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The DateTime value to add to.
Type: DateTime
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.