Skip to content

Date

sereto.cli.date

allows_range(date_type)

Check if the date type allows for a range.

Source code in sereto/cli/date.py
4
5
6
def allows_range(date_type: DateType) -> bool:
    """Check if the date type allows for a range."""
    return date_type in TYPES_WITH_ALLOWED_RANGE