Converts a time period to a PKI specific binary format.
ConvertTo-SystoLockPkiPeriod [[-Format] <String>] [-Period] <TimeSpan> [-ProgressAction <ActionPreference>]
[<CommonParameters>]
ConvertTo-SystoLockPkiPeriod [[-Format] <String>] [[-Days] <Int32>] [[-Hours] <Int32>] [[-Minutes] <Int32>]
[[-Seconds] <Int32>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
The ConvertTo-SystoLockPkiPeriod cmdlet returns a PKI specific byte array or its string representation.
ConvertTo-SystoLockPkiPeriod -Period ([TimeSpan]::FromDays(365))
Coverts a period of 1 year (365 days) into byte array.
ConvertTo-SystoLockPkiPeriod -Period ([TimeSpan]::FromDays(90)) -Format HEX
Coverts a period of 3 month (90 days) into HEX encoded string.
ConvertTo-SystoLockPkiPeriod -Minutes 10 -Format BASE64
Coverts a period of 10 minutes interval into BASE64 encoded string.
Number of days for conversion to PKI-specific binary format.
Type: Int32
Parameter Sets: Explicit
Aliases:
Required: False
Position: 0
Default value: 0
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
If omitted or "bytes" the command produces Byte[];if "hex", "base32" or "base64" the result is encoded into a string using corresponding binary encoding.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Number of hours for conversion to PKI-specific binary format.
Type: Int32
Parameter Sets: Explicit
Aliases:
Required: False
Position: 1
Default value: 0
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Number of minutes for conversion to PKI-specific binary format.
Type: Int32
Parameter Sets: Explicit
Aliases:
Required: False
Position: 2
Default value: 0
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
An instance of the TimeSpan class for conversion to PKI-specific binary format.
Type: TimeSpan
Parameter Sets: Period
Aliases:
Required: True
Position: 0
Default value: 00:00:00
Accept pipeline input: True (ByPropertyName, 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
Number of minutes for conversion to PKI-specific binary format.
Type: Int32
Parameter Sets: Explicit
Aliases:
Required: False
Position: 3
Default value: 0
Accept pipeline input: True (ByPropertyName, ByValue)
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.
If omitted or "bytes" the command produces Byte[];if "hex", "base32" or "base64" the result is encoded into a string using corresponding binary encoding.
An instance of the TimeSpan class for conversion to PKI-specific binary format.
Number of days for conversion to PKI-specific binary format.
Number of hours for conversion to PKI-specific binary format.
Number of minutes for conversion to PKI-specific binary format.
Number of minutes for conversion to PKI-specific binary format.
ConvertFrom-SystoLockPkiPeriod