Commit 418e0e71 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Bumped matlab version condition in print routine.

It seems that the matlab documentation about datetime is
incorrect. This routine is unknown in R2015a (and R2015b acording to
Nikola Bokan). If matlab version is smaller than R2016a, we call
datestr instead.
parent 1fb2ee89
......@@ -26,7 +26,7 @@ end
fid = fopen(sprintf('%s.spc', basename), 'w');
% Print creation date
if ~isoctave() && ~verLessThan('matlab','8.4')
if ~isoctave() && ~verLessThan('matlab','9.0')
fprintf(fid, '# File created on %s by Dynare.\n\n', datetime());
fprintf(fid, '# File created on %s by Dynare.\n\n', datestr(now));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment