cron¶
            validators.cron.cron(value)
¶
    Return whether or not given value is a valid cron string.
Examples:
>>> cron('*/5 * * * *')
True
>>> cron('30-20 * * * *')
ValidationError(func=cron, args={'value': '30-20 * * * *'})
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| value | str | Cron string to validate. | required | 
Returns:
| Type | Description | 
|---|---|
| Literal[True] | If  | 
| ValidationError | If  | 
Source code in src/validators/cron.py
              | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |  |