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


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

Submitted by:  Randy <littlemanrkc>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

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


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

I used the wrong OF address, fixed now.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
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>
Project Administrator
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.


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:

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)

    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
    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.7