bugGNU Octave - Bugs: bug #54679, datenum accepts a matrix, which is...


bug #54679: datenum accepts a matrix, which is undocumented

Submitted by:  None
Submitted on:  Tue 18 Sep 2018 01:54:58 PM UTC  
Category:  Documentation Severity:  2 - Minor
Priority:  3 - Low Item Group:  Documentation
Status:  None Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.4.1
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 19 Jan 2019 06:21:59 AM UTC, comment #2:

Here's a patch to add doco about datenum's nonscalar inputs: file #46024.

Andrew Janke <apjanke>
Tue 18 Sep 2018 08:18:28 PM UTC, comment #1:

Thanks for this report.
Can you come up with patch or changeset, please? Documentation patches are really easy. Just edit the function, save it to another name and then do:

diff -u <original_function_file> <improved_function_file> > <some_file_name>.patch

A mercurial changeset would be really awesome.

Philip Nienhuis <philipnienhuis>
Project Member
Tue 18 Sep 2018 01:54:58 PM UTC, original submission:

datenum() accepts not only single values, but also a matrix of values to convert as an argument. This capability is undocumented.

The manual should state that all arguments to the function: YEAR, MONTH, DAY, HOUR, MINUTE, SECOND can be either numbers or arrays, and the result will correspondently be a number or an array:

This is also true of the DATEVEC argument:



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by apjanke (Updated the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-19 apjanke Attached File- => Added octave-datenum-doco-for-nonscalar-inputs.patch, #46024
    2018-09-19 mtmiller Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 3 - Low

    Back to the top

    Powered by Savane 3.4