Skip to main content

Yesterday Command

View the output of tt yesterday --help

track-time-cli yesterday [sheets..]

Display a summary of activity for yesterday

Options:
--version Show version number [boolean]
--absolute, --abs Print dates as absolute timestamps [boolean]
-h, --humanize Print the total duration in human-readable format
[boolean]
--all-sheets Show results for all sheets [boolean]
--help Show help [boolean]
--sheets Show results for the specified sheets [array]

The yesterday command is used to display a summary of activity for the previous day. Multiple sheets can be included in the output; by default only the active sheet will be used.

Arguments

Render durations into a human-readable word form with --humanize

tip

The -h (or --humanize) argument switches the rendering of durations from a simple digit display to a human-readable word form.

Render dates as absolute ISO timestamps with --absolute

tip

The --absolute (or --abs) argument enables rendering of dates as ISO timestamps instead of relative times.

argumentaliastypedescriptiondefault
--absolute--absbooleanPrint dates as absolute timestampsfalse
--humanize-hbooleanPrint the durations in a human-readable formatfalse
--all-sheetsbooleanInclude all sheets in the resultsfalse
--sheetsstringSpecify the sheets that will be included in the resultsfalse

Examples

A few simple examples are provided below.

View A Summary of Activity From All Sheets For Yesterday

Often, you will want to see a summary of the past day's activity across all sheets. To do this, provide the --all-sheets argument. Otherwise, you can select sheets with the --sheets argument. For exanple: Output of tt y --all-sheets

Select Individual Sheets

Pass sheet names via the --sheets argument to include them in the results: Output of tt y --sheet main

View Durations As Human-Readable Words

Render durations in a human-readable format with the -h (or --humanize) argument: Output of tt y -h

Display Absolute Dates

Instead of exposing a -r (or --relative) argument, the yesteray command displays dates as relative by default. To switch to displaying dates as absolute timestamps, pass the --absolute (or --abs) argument: Output of tt y --absolute