@@ -7,8 +7,9 @@ It is intended for Finnish time tracking use cases.
77
88- auth command (` otta auth login ` )
99- status check command (` otta status ` )
10+ - cumulative saldo command (` otta saldo ` )
1011- worktime commands (` list/browse/report/options/add/update/delete ` )
11- - calendar overview command ( ` otta calendar overview` )
12+ - calendar commands ( ` overview/detailed ` )
1213- holidays retrieval command
1314- absence commands (` options/browse/comment ` )
1415- configurable local config path
@@ -67,13 +68,35 @@ otta worktimes list --date 2026-02-20
6768otta worktimes browse --from 2026-02-20 --to 2026-02-26 --format json
6869otta worktimes report --from 2026-02-01 --to 2026-02-28 --format csv
6970otta calendar overview --from 2026-02-01 --to 2026-02-28 --format json
71+ otta calendar detailed --from 2026-02-01 --to 2026-02-28 --format json
7072otta worktimes options --date 2026-02-20 --format json
73+ otta saldo --format json
7174otta holidays --from 2026-02-20 --to 2026-02-20 --worktimegroup < id> --format json
7275otta absence browse --from 2026-02-01 --to 2026-02-28 --format json
7376otta absence options --format json
7477otta absence comment --type sick --from 2026-02-20 --to 2026-02-20
7578```
7679
80+ Important: ` worktimes list/browse/report ` return only worktime rows and do not include absences.
81+ For full day-by-day schedule checks (worktimes + absences + holidays/day-off signals), prefer:
82+
83+ ``` bash
84+ otta calendar detailed --from 2026-02-01 --to 2026-02-28 --format json
85+ ```
86+
87+ Duration conversion on read commands:
88+
89+ - Global flag: ` --duration-format ` with values ` minutes ` (default), ` hours ` , ` days ` , ` hhmm `
90+ - Works across read commands that expose minute totals (` worktimes ` , ` absence browse ` , ` saldo ` , ` holidays ` , ` calendar overview ` , ` calendar detailed ` )
91+ - Day conversion uses a fixed basis: ` 1 day = 24 hours = 1440 minutes `
92+ - Example:
93+
94+ ``` bash
95+ otta calendar detailed --from 2026-02-01 --to 2026-02-28 --duration-format hours
96+ otta worktimes browse --from 2026-02-01 --to 2026-02-28 --format json --duration-format days
97+ otta absence browse --from 2026-02-01 --to 2026-02-28 --format json --duration-format hhmm
98+ ```
99+
77100For non-interactive scripts, prefer stdin or env secrets to reduce shell history exposure:
78101
79102``` bash
@@ -110,8 +133,8 @@ Credential env vars:
110133- ` OTTA_CLI_TOKEN_TYPE `
111134- ` OTTA_CLI_REFRESH_TOKEN `
112135- ` OTTA_CLI_TOKEN_SCOPE `
113- - ` OTTA_CLI_USER_ID ` (optional convenience for ` worktimes add ` )
114- - ` OTTA_CLI_WORKTIMEGROUP_ID ` (optional convenience for ` holidays ` and ` calendar overview ` )
136+ - ` OTTA_CLI_USER_ID ` (optional convenience for ` worktimes add ` and ` saldo ` )
137+ - ` OTTA_CLI_WORKTIMEGROUP_ID ` (optional convenience for ` holidays ` , ` calendar overview ` , and ` calendar detailed ` )
115138
116139## Test and Lint
117140
0 commit comments