Parses a Timespan from a ISO8601 duration string.
ConvertFrom-Duration.ps1 [[-InputObject] <String[]>] [-NoWarnings] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
"$(ConvertFrom-Duration.ps1 P1D)"
1.00:00:00
"$(ConvertFrom-Duration.ps1 P3Y6M4DT12H30M5S)"
WARNING: Adding year(s) as a mean number of days (365.2425). WARNING: Adding month(s) as a mean number of days (30.436875). 1283.12:30:05
An ISO8601 duration string in one of four formats:
* PnYnMnDTnHnMnS
* PnW
* Pyyyy-MM-ddTHH:mm:ss
* PyyyyMMddTHHmmss
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Supresses warnings about approximate conversions.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: Quiet
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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.