The following error is generated when using "datestr" function on a datetime datatype:
octave:4> datestr(datetime('today'),'yyyy-mm-dd HH:MM:SS')
error: datevec: function called with too many inputs
error: called from
datevec
datestr at line 185 column 5
Changing the "datevec" function definition in the the "datetime.m" from "function varargout = datevec (this)" to "function varargout = datevec (this,varargin)" solves this.
The following error is generated when using "datestr" function on a datetime datatype:
octave:4> datestr(datetime('today'),'yyyy-mm-dd HH:MM:SS')
error: datevec: function called with too many inputs
error: called from
datevec
datestr at line 185 column 5
Changing the "datevec" function definition in the the "datetime.m" from "function varargout = datevec (this)" to "function varargout = datevec (this,varargin)" solves this.