bugGNU Octave - Bugs: bug #48071, datestr with formatting option 16...

 
 

bug #48071: datestr with formatting option 16 returning incorrect format

Submitter:  None
Submitted:  Tue 31 May 2016 10:52:04 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.2
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 01 Jun 2016 05:00:13 AM UTC, comment #2: 

I fixed this on the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/50f49dcae277).  This will be a part of the 4.2 release.

If you need the fix sooner you can just download the datestr.m file from the Mercurial repo and copy it in to your path.

Rik <rik5>
Group administrator
Wed 01 Jun 2016 02:54:50 AM UTC, comment #1: 

Confirmed.  Setting Item Group to Matlab Compatibility.

Rik <rik5>
Group administrator
Tue 31 May 2016 10:52:04 PM UTC, original submission:  

The format option 16 for datestr should return values such as 8:15 AM and 4:50 PM, but it doesn't give PM times correctly, it leaves the hour in 24-hour format, like 16:50 PM.

For example,

datestr([7.3656683e+05 7.3650111e+05], 16)

returns

19:55 PM
 2:38 AM

but it should return

 7:55 PM
 2:38 AM


Anonymous

 

(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 (Posted a comment)
  •  

    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
    2016-06-01 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-06-01 rik5 Item GroupNone Matlab Compatibility
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code