From 381b3143411d6a296ccee04a8ab86aff6149fdbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 28 Nov 2024 15:59:57 +0100 Subject: [PATCH] Manual: document alternative syntaxes for annual and bi-annual dates [skip ci] (cherry picked from commit e623fa6f811c65b758db1590869aa0f46d8c0b9b) --- doc/manual/source/time-series.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/manual/source/time-series.rst b/doc/manual/source/time-series.rst index 2af0796869..fd61cbca3d 100644 --- a/doc/manual/source/time-series.rst +++ b/doc/manual/source/time-series.rst @@ -31,10 +31,15 @@ Dynare understands dates in a mod file. Users can declare annual, bi-annual, quarterly, or monthly dates using the following syntax:: 1990Y + 1990A 1990S2 + 1990H2 1990Q4 1990M11 +Note that there are two syntaxes for annual dates (`1990A` is equivalent to +`1990Y`), and for bi-annual dates (`1990H2` is equivalent to `1990S2`). + Behind the scene, Dynare’s preprocessor translates these expressions into instantiations of the MATLAB/Octave’s class ``dates`` described below. Basic operations can be performed on dates: -- GitLab