octave-maintainers
[Top][All Lists]
Advanced

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

Re: can someone check matlab output of the attached code? (was updated d


From: Nicholas Jankowski
Subject: Re: can someone check matlab output of the attached code? (was updated datevec.m...)
Date: Tue, 13 Oct 2015 09:21:24 -0400

On Mon, Oct 12, 2015 at 1:12 PM, Nicholas Jankowski <address@hidden> wrote:
On Sun, Oct 11, 2015 at 10:32 PM, Nicholas Jankowski <address@hidden> wrote:
Could use someone with matlab access to do a compatibility check on the tests/output for corrected version of datevec.m I attached to the bug report.

Function was failing when format combined .FFF and AM/PM.  currently passes all tests, but don't have access to verify ML compatibility at the moment.

https://savannah.gnu.org/bugs/index.php?46171


Nick J.


the following commands should run in Matlab. Could someone with access please post back the output?  I'll use that to verify that I didn't break compatibility with my bugfix. Thanks in advance.

Nick J.

--------------------
%% Test millisecond format FFF
test1 = datevec ('15:38:21.2', 'HH:MM:SS.FFF')
test2 = datevec ('15:38:21.25', 'HH:MM:SS.FFF')
test3 = datevec ('15:38:21.251', 'HH:MM:SS.FFF')

%% Test millisecond format FFF with AM/PM, and 1,2, or 3 FFF digits
test4 = datevec ('06/01/2015 3:07:12.102 PM','mm/dd/yyyy HH:MM:SS.FFF PM')
test5 = datevec ('06/01/2015 11:07:12.102 PM','mm/dd/yyyy HH:MM:SS.FFF PM')
test6 = datevec ('06/01/2015 3:07:12.102 AM','mm/dd/yyyy HH:MM:SS.FFF PM')
test7 = datevec ('06/01/2015 11:07:12.102 AM','mm/dd/yyyy HH:MM:SS.FFF PM')
test8 = datevec ('06/01/2015 3:07:12.1 PM','mm/dd/yyyy HH:MM:SS.FFF PM')
test9 = datevec ('06/01/2015 3:07:12.12 AM','mm/dd/yyyy HH:MM:SS.FFF PM')
test10 = datevec ('06/01/2015 3:07:12.12 PM','mm/dd/yyyy HH:MM:SS.FFF PM')

------------------------------

>
>>> [test1;test2;test3;test4;test5;test6;test7;test8;test9;test10]
>
>ans =
>
>    1.0e+03 *
>
>    2.0150    0.0010    0.0010    0.0150    0.0380    0.0212
>    2.0150    0.0010    0.0010    0.0150    0.0380    0.0213
>    2.0150    0.0010    0.0010    0.0150    0.0380    0.0213
>    2.0150    0.0060    0.0010    0.0150    0.0070    0.0121
>    2.0150    0.0060    0.0010    0.0230    0.0070    0.0121
>    2.0150    0.0060    0.0010    0.0030    0.0070    0.0121
>    2.0150    0.0060    0.0010    0.0110    0.0070    0.0121
>    2.0150    0.0060    0.0010    0.0150    0.0070    0.0121
>    2.0150    0.0060    0.0010    0.0030    0.0070    0.0121
>    2.0150    0.0060    0.0010    0.0150    0.0070    0.0121
>
>>>
>>> version
>
>ans =
>
>8.5.0.197613 (R2015a)

Output received, thanks all!

Nick J.

reply via email to

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