Added test for integer input (dynDate constructor with one numeric input).

time-shift
Stéphane Adjemian (Charybdis) 2013-09-03 22:09:13 +02:00
parent 0f10880d07
commit ce400706ef
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ switch nargin
elseif isa(a,'dynDate') % If input argument is a dynDate object then do a copy.
date = a;
else
if isequal(length(a),1) && isnumeric(a)
if isequal(length(a),1) && isnumeric(a) && isint(a)
% If b is not a string then yearly data are assumed.
date.freq = 1;
date.time(1) = a;