cron¶
- validators.cron.cron(value: str, /)¶
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:
value – Cron string to validate.
- Returns:
If value is a valid cron string. (ValidationError): If value is an invalid cron string.
- Return type:
(Literal[True])