bugGNU Octave - Bugs: bug #62328, datemnth error

 
 

bug #62328: datemnth error

Submitter:  SJ <sjoctavebug>
Submitted:  Mon 18 Apr 2022 01:45:44 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 18 Apr 2022 04:58:00 PM UTC, comment #3: 

comment #2:

> I cannot reproduce (because the function `datemnth` is neither part of the financial package from Octave Forge nor part of core Octave).
>
> Where did you get that function from? Apart from the commands Dmitri already sent, `which datemnth` could give a hint...
> OK, sorry about the confusion.  When I tried to call the datemnth function, it mentioned something about loading the financial package.  That was why I loaded the financial package in the first line.  But when I went back to execute the >> help datemnth command in the start up folder, I got "error: help: The 'datemnth' function belongs to the financial package from Octave

Forge but has not yet been implemented."   I then realized that the code that I posted worked in another folder, and there is a local function datemnth.  Looks like it is a local function that I wrote two years ago and I forgot about it. :( Obviously there is a bug in it.  I will look into it myself.  Thanks for your responses.

SJ <sjoctavebug>
Mon 18 Apr 2022 01:50:39 PM UTC, comment #2: 

I cannot reproduce (because the function `datemnth` is neither part of the financial package from Octave Forge nor part of core Octave).

Where did you get that function from? Apart from the commands Dmitri already sent, `which datemnth` could give a hint...

Markus Mützel <mmuetzel>
Group administrator
Mon 18 Apr 2022 02:04:19 AM UTC, comment #1: 

What do you get if you type "help datemnth" or "type datemnth"?

Dmitri.
--


Dmitri A. Sergatskov <dasergatskov>
Mon 18 Apr 2022 01:45:44 AM UTC, original submission:  

Run the code below:

pkg load financial;
date1 = datemnth(datenum(1967,1,1),11:12,1);
date1

returns:

date1 =

   718798
   718798

But the two dates returned should have been different.

SJ <sjoctavebug>

 

(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 rik5 (Updated the item)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by sjoctavebug (Submitted the item)
  • -email is unavailable- added by sjoctavebug
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-18 rik5 StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2022-04-18 mmuetzel StatusNone Need Info
    2022-04-18 sjoctavebug Carbon-Copy- Added sjoctavebug

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code