Skip to content

datevec method for datetime datatype doesn't support same inputs as default datevec function #35

@lexelec

Description

@lexelec

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions