bugGNU Octave - Bugs: bug #34586, datestr and datevec fractional...

 
 

bug #34586: datestr and datevec fractional seconds matlab incompatibility

Submitted by:  None
Submitted on:  Tue 18 Oct 2011 01:07:16 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Dan NewmanOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 09 Nov 2011 10:53:23 PM UTC, comment #3:

I've added support for the FFF format string to Octave in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/40e32fe44aaa). To see the fix you will need to build from the Mercurial archive or wait for the 3.6.0 release scheduled for December 2011.

Rik <rik5>
Project Administrator
Thu 20 Oct 2011 12:32:06 AM UTC, comment #2:

I don't have a current version of Matlab. I'm just going by their online documentation at

http://www.mathworks.com.au/help/techdoc/matlab_prog/bspgcx2-1.html#bsplnu3-2

Anonymous
Wed 19 Oct 2011 09:36:57 PM UTC, comment #1:

This is pretty easy to fix, but I need to see how Matlab behaves in a few instances. Could you try the following code segments and report what they return?

Rik <rik5>
Project Administrator
Tue 18 Oct 2011 01:07:16 PM UTC, original submission:

The datestr and datevec functions do not handle fractions of a second. This is imcompatible with the identically-named Matlab functions.

For example:

>> dvec = clock

dvec =

2011.000 10.000 18.000 23.000 51.000 56.803

>> dstr = datestr( dvec, 'yyyy-mm-ddTHH:MM:SS.FFF')

dstr = 2011-10-18T23:51:56.FFF

And:

>> dstr2 = '2011-10-18T24:02:37.25'

dstr2 = 2011-10-18T24:02:37.25

>> datevec( dstr2, 'yyyy-mm-ddTHH:MM:SS.FFF')

error: datevec: DATE not parsed correctly with given format
error: called from:
error: /usr/share/octave/3.5.0+/m/time/datevec.m at line 140, column 11

>>

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 09 Nov 2011 10:53:23 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 19 Oct 2011 09:36:57 PM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1