Time ranges
Every usage view accepts a time range. There are two ways to give one.
Preset commands
Section titled “Preset commands”cca today # since local midnightcca week # the last 7 dayscca month # the last calendar monthThese print the same layout as the default summary, narrowed.
Explicit ranges
Section titled “Explicit ranges”cca --since 7d # relativecca --since 2026-09-01 # absolute, open-endedcca --since 2026-09-01 --until 2026-09-14 # both endscca projects --since 30d # works on any viewWhat the relative specs mean
Section titled “What the relative specs mean”| Spec | Meaning |
|---|---|
Nd |
The last N calendar days including today |
Nw |
The last 7 × N days, same rule |
Nm |
Back N calendar months from today |
What --until means
Section titled “What --until means”--until includes the whole day you name. --until 2026-09-14 covers
everything up to 2026-09-14 23:59:59 local time.
Relative specs are rejected for --until, because “until 7d” reads ambiguously
— it could plausibly mean either end of that span.
Time zones
Section titled “Time zones”Records carry UTC timestamps. Every boundary is computed in your local zone, and relative specs anchor to local midnight.
This means the same instant can fall on different sides of the same window
depending on where you are, which is correct: cca today should mean your
today.
Combining is refused
Section titled “Combining is refused”$ cca today --since 7dcca: this command already sets its own time range; drop --since/--until or usethe default view with them insteadA preset window and an explicit one cannot both be honoured. Rather than
silently picking one, cca stops and says so.
Records with no usable timestamp
Section titled “Records with no usable timestamp”A record whose timestamp cannot be parsed is counted in the totals but cannot
be placed on a calendar. A bounded window therefore excludes it — claiming
it falls inside a range would be a guess. --verbose reports how many there
were.