Skip to content

accept absolute dates in --since/--before/--older-than #37

@qorexdevs

Description

@qorexdevs

list --since/--before and gc --older-than only take relative durations like 7d or 12h. Would be handy to also accept an absolute date, e.g. list --since 2026-06-01 or --before 2026-06-01T12:00.

Scope: parse_duration in store.py is where durations are turned into seconds. A small helper could detect an ISO-ish date string and turn it into "seconds ago" relative to now, falling back to the existing duration parser. The list/gc filters already compare against created_at, so nothing downstream changes.

Tests: one case parsing a date in the past, one mixing a date with the existing 1h form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions