Skip to content

Add support for 6-digit ncrontab? #16

Description

@YeeeNIH

Get-CronDescription correctly translates 6-digit ncrontab, but Get-CronNextOccurrence does not. Can 6-digit functionality be added to the rest of the Cron functions please?

Example:
Get-CronDescription`` -Crontab '30 0 4 2 * `*'
At 04:00:30 AM, on day 2 of the month

Get-CronNextOccurrence -Crontab '30 0 4 2 * *'
'30 0 4 2 * *' is an invalid crontab expression. It must contain 5 components of a schedule in the sequence of minutes, hours, days, months, and days of week.
At C:\Users\userA\Documents\WindowsPowerShell\Modules\PSDates\1.0.6\PSDates.psm1:915 char:9

  •     throw $Schedule.ErrorMsg
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: ('30 0 4 2 * *' ...d days of week.:String) [], RuntimeException
    • FullyQualifiedErrorId : '30 0 4 2 * *' is an invalid crontab expression. It must contain 5 components of a schedule in the sequence of minutes, hours, days, months, and days of week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions