bugGNU Octave - Bugs: bug #37616, holidays result incorrect when New...

 
 

bug #37616: holidays result incorrect when New Year's Day falls on Saturday

Submitter:  Randy <littlemanrkc>
Submitted:  Mon 22 Oct 2012 11:00:59 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Octave Forge Assigned to:  None
Originator Name:  Randy Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 25 Oct 2012 01:42:16 PM UTC, comment #2: 

I used the wrong OF address, fixed now.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Tue 23 Oct 2012 07:05:25 PM UTC, comment #1: 

This looks like a problem with an Octave Forge package, not a bug
in Octave.  The correct place to report this problem is the
Octave Forge mailing list, octave-dev@lists.sourceforge.net.

A copy of this update to the bug report is being sent to that
list so that they are aware of it.  Please follow up there.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Mon 22 Oct 2012 11:00:59 PM UTC, original submission:  

In the financial package of octave-forge, the holidays() function gives an invalid result when passing in a date vector containing New Year's Eve as the end date when New Year's day falls on a Saturday.

Example:

octave:34> holidays(734503, 734504)
ans =  734503
octave:35> holidays(734503, 734503)
ans = [](0x1)


I fixed the problem in my local copy by changing line 38 to:

yrs = year(sd):year(ed+1); % I added the +1


Randy <littlemanrkc>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by littlemanrkc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-25 jordigh Carbon-Copy- Added -email is unavailable-
    2012-10-23 jordigh StatusNone Octave Forge
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code