From b3ca205b27de01f792f89cb515da4f1af0d39df2 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Mon, 13 Jan 2014 16:19:24 -0500 Subject: [PATCH] doc: dates subtraction has two functionalities (cherry picked from commit 54a0039c6468cbedd5d2eb449519b8ee40c6ec04) --- doc/dynare.texi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/dynare.texi b/doc/dynare.texi index c30a8edca..f39421dfe 100644 --- a/doc/dynare.texi +++ b/doc/dynare.texi @@ -8541,7 +8541,11 @@ Increments a date by one period. @code{+1950Q1} is identical to @code{1950Q2}, @ @item minus binary operator (@code{-}) -The difference between two dates is a number of periods. For instance if @code{1951Q2-1950Q1} is equal to @code{5} (quarters). +Has two functions: difference and subtraction. If the second argument +is a date, calculates the difference between the first date and the +second date (@i{e.g.} @code{1951Q2-1950Q1} is equal to @code{5}). If +the second argument is an integer @code{X}, subtracts @code{X} periods +from the date (@i{e.g.} @code{1951Q2-2} is equal to @code{1950Q4}). @item minus unary operator (@code{-}) -- GitLab