Compare periods
compare_periodsCompare two date ranges across recovery, HRV, sleep, strain, and more. See per-metric changes, percent change, and whether each metric improved or declined.
Instructions
Compare two date ranges across recovery, HRV, resting heart rate, sleep, strain, calories, and workout count - with per-metric change, percent change, and an improved/declined/unchanged assessment. Period A is the baseline; period B is compared against it.
All four arguments accept: today | yesterday | N days ago | last week |
this month | YYYY-MM-DD | ISO datetime. Example: compare "last month" to
"this month" by using the same expression for a period's start and end.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period_a_start | Yes | ||
| period_a_end | Yes | ||
| period_b_start | Yes | ||
| period_b_end | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||