external help file | Module Name | online version | schema |
---|---|---|---|
PSDates-help.xml |
PSDates |
2.0.0 |
Convert a cron expression into a human readable description
Get-CronDescription [-Crontab] <String> [[-Locale <String>]] [-DayOfWeekStartIndexOne] [-ProgressAction <ActionPreference>] [-Use24HourTimeFormat] [<CommonParameters>]
Uses the .NET library CronExpressionDescriptor to convert cron expressions into human readable descriptions.
Get-CronDescription -Crontab '0 17 * * 1'
Results with default options: At 05:00 PM, only on Monday
Get-CronDescription -Crontab '0 17 * * 1' -DayOfWeekStartIndexOne
Results with DayOfWeekStartIndexOne switch returns Sunday for the 1 instead of Monday: At 05:00 PM, only on Sunday
Get-CronDescription -Crontab '0 17 * * 1' -Use24HourTimeFormat
Results with Use24HourTimeFormat options: At 17:00, only on Monday
Get-CronDescription -Crontab '0 17 * * 1' -Locale 'fr'
Results with fr Locale options: At 05:00 PM, only on lundi
A valid crontab string
Type: String
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (All) False (None)
Position: 0
Default value:
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
When used Sunday will equal 1, otherwise Sunday will be 0. (Default: Sunday = 0)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
The locale to use (Default: "en") Supported values: cs-CZ, da, de, es, es-MX, fa, fi, fr, he-IL, hu, it, ja, ko, nb, nl, pl, pt, ro, ru, sl, sv, tr, uk, vi, zh-Hans, zh-Hant
Type: String
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: 1
Default value: en
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Accepted values:
Required: True (None) False (All)
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
If true, descriptions will use a 24-hour clock (Default: false but some translations will default to true)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Accepted values:
Required: True (None) False (All)
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
DontShow: 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.
Fill Related Links Here