MMinuteBramble
Product

Product features · Minute-field schedule expansion

01

Inspect minute_field.py for exactly which minute-field forms it accepts before reusing the values in a scheduler.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Minute-field schedule expansion

● ● ●MinuteBramble●
A concrete starting point · Minute-field schedule expansion ×
import re

def minute_values(field):
    if type(field) is not str or not 1 <= len(field) <= 128:
        raise ValueError("minute.input")
    result = set()
    for item in field.split(","):
        match = re.fullmatch(r"(\*|[0-9]+(?:-[0-9]+)?)(?:/([0-9]+))?", item)
        if match is None:
            raise ValueError("minute.syntax")
        base, step_text = match.groups()
        step = int(step_text) if step_text else 1
        if not 1 <= step <= 59 or (step_text and base != "*" and "-" not in base):
            raise ValueError("minute.step")
        bounds = [int(x) for x in base.split("-")] if base != "*" else [0, 59]
        low, high = (bounds[0], bounds[-1])
        if not 0 <= low <= high <= 59:
            raise ValueError("minute.bounds")
        result.update(range(low, high+1, step))
    return sorted(result)
✳Minute-field schedule expansion
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗