From 1eca6b8b5c7b5de25bf08df6c5aacba24e356925 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 31 Jul 2020 18:15:18 -0700 Subject: [PATCH] ;queries: document quarter query term (#1247) --- hledger/hledger.m4.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index c604746ba..058349d71 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -995,11 +995,18 @@ earliest or latest transaction in your journal: A single date with no "from" or "to" defines both the start and end date like so: -| | | -|-----------------|--------------------------------------------------------| -| `-p "2009"` | the year 2009; equivalent to “2009/1/1 to 2010/1/1” | -| `-p "2009/1"` | the month of jan; equivalent to “2009/1/1 to 2009/2/1” | -| `-p "2009/1/1"` | just that day; equivalent to “2009/1/1 to 2009/1/2” | +| | | +|-----------------|-------------------------------------------------------------| +| `-p "2009"` | the year 2009; equivalent to “2009/1/1 to 2010/1/1” | +| `-p "2009/1"` | the month of jan; equivalent to “2009/1/1 to 2009/2/1” | +| `-p "2009/1/1"` | just that day; equivalent to “2009/1/1 to 2009/1/2” | + +Or you can specify a single quarter like so: + +| | | +|-----------------|-------------------------------------------------------------| +| `-p "2009Q1"` | first quarter of 2009, equivalent to “2009/1/1 to 2009/4/1” | +| `-p "q4"` | fourth quarter of the current year | The argument of `-p` can also begin with, or be, a [report interval](#report-intervals) expression. The basic report intervals are `daily`, `weekly`, `monthly`, `quarterly`, or `yearly`,