[time] Support */N syntax in cron expressions (#15434)

This commit is contained in:
J. Nick Koston
2026-04-04 00:30:41 -10:00
committed by GitHub
parent b0d39aedd3
commit 9ee5089891
2 changed files with 82 additions and 2 deletions
+2 -2
View File
@@ -123,8 +123,8 @@ def _parse_cron_part(part, min_value, max_value, special_mapping):
f"Can't have more than two '/' in one time expression, got {part}"
)
offset, repeat = data
offset_n = 0
if offset:
offset_n = min_value
if offset and offset not in ("*", "?"):
offset_n = _parse_cron_int(
offset,
special_mapping,