bugGNU Octave - Bugs: bug #49570, datenum gives incorrect results...

 
 

bug #49570: datenum gives incorrect results for month > 14

Submitted by:  Markus Mützel <mmuetzel>
Submitted on:  Wed 09 Nov 2016 05:33:56 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 10 Nov 2016 05:13:33 AM UTC, comment #2:

I pushed your fix to the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/bc9b0f75859e).

Fixed, closing report.

Rik <rik5>
Project Administrator
Wed 09 Nov 2016 05:42:53 PM UTC, comment #1:

Attached is a patch that fixes that issue.

(file #38915)

Markus Mützel <mmuetzel>
Project Member
Wed 09 Nov 2016 05:33:56 PM UTC, original submission:

While Matlab accepts months > 14 as an input to datenum moving those months to the subsequent years, Octave wraps them back one year (minus February).

Example in Octave:

In Matlab:

Markus Mützel <mmuetzel>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by mmuetzel (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Nov 2016 05:13:33 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 09 Nov 2016 05:42:53 PM UTCmmuetzelAttached File-=>Added bug49570_datenum_month.patch, #38915

    Back to the top


    Powered by Savane 3.1-cleanup1