comparison scripts/time/datestr.m @ 19865:e9f89866074c

maint: Cleanup some .m files to follow Octave coding conventions. * accumarray.m, validateattributes.m, iscolormap.m, __imread__.m, __imwrite__.m, imwrite_filename.m, strread.m, getappdata.m, appearance/annotation.m, shrinkfaces.m, rundemos.m, runtests.m, datenum.m, datestr.m: Break long lines before && and ||.
author John W. Eaton <jwe@octave.org>
date Thu, 26 Feb 2015 13:13:40 -0500
parents 9fc020886ae9
children 2645f9ef8c88
comparison
equal deleted inserted replaced
19864:17d647821d61 19865:e9f89866074c
181 else 181 else
182 v = []; 182 v = [];
183 if (columns (date) == 6) 183 if (columns (date) == 6)
184 ## Make sure that the input really is a datevec. 184 ## Make sure that the input really is a datevec.
185 maxdatevec = [Inf, 12, 31, 23, 59, 60]; 185 maxdatevec = [Inf, 12, 31, 23, 59, 60];
186 if (any (max (date, 1) > maxdatevec) || 186 if (any (max (date, 1) > maxdatevec)
187 any (date(:,1:5) != floor (date(:,1:5)))) 187 || any (date(:,1:5) != floor (date(:,1:5))))
188 v = datevec (date, p); 188 v = datevec (date, p);
189 endif 189 endif
190 endif 190 endif
191 if (isempty (v)) 191 if (isempty (v))
192 v = date; 192 v = date;