octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37616] holidays result incorrect when New Yea


From: Randy
Subject: [Octave-bug-tracker] [bug #37616] holidays result incorrect when New Year's Day falls on Saturday
Date: Mon, 22 Oct 2012 23:01:00 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0

URL:
  <http://savannah.gnu.org/bugs/?37616>

                 Summary: holidays result incorrect when New Year's Day falls
on Saturday
                 Project: GNU Octave
            Submitted by: littlemanrkc
            Submitted on: Mon 22 Oct 2012 11:00:59 PM GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Randy
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37616>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]