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

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

[Octave-bug-tracker] [bug #34586] datestr and datevec fractional seconds


From: anonymous
Subject: [Octave-bug-tracker] [bug #34586] datestr and datevec fractional seconds matlab incompatibility
Date: Tue, 18 Oct 2011 13:07:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.10 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1

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

                 Summary: datestr and datevec fractional seconds matlab
incompatibility
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 18 Oct 2011 01:07:16 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: Dan Newman
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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