Skip to content
Snippets Groups Projects
Verified Commit 1a0a4898 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed year method.

parent fd3ca10f
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ function y = year(d)
% Returns the year.
% Copyright (C) 2016-2017 Dynare Team
% Copyright © 2016-2020 Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
......@@ -17,4 +17,10 @@ function y = year(d)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if d.freq==365
tmp = datevec(d.time(1));
y = tmp(1);
return
end
y = d.time(1);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment