Help with Matlab Compatability

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with Matlab Compatability

Rik-5
11/2/11

I'm trying to resolve bug #34586 involving fractional seconds.  Can someone
run the following code segments on Matlab and report the result?

datestr (now, 'MM:SS.fff')
datestr (now, 'MM:SS:FFF')
datestr (now, 'qq-YY')
datestr (now, 'DDDD MMMM dd')
datestr (datevec ('16:20', 'HH:MM am'))

Cheers,
Rik
Reply | Threaded
Open this post in threaded view
|

Re: Help with Matlab Compatability

Søren Hauberg
ons, 02 11 2011 kl. 21:44 -0700, skrev Rik:

> 11/2/11
>
> I'm trying to resolve bug #34586 involving fractional seconds.  Can someone
> run the following code segments on Matlab and report the result?
>
> datestr (now, 'MM:SS.fff')
> datestr (now, 'MM:SS:FFF')
> datestr (now, 'qq-YY')
> datestr (now, 'DDDD MMMM dd')
> datestr (datevec ('16:20', 'HH:MM am'))

I get:

>> datestr (now, 'MM:SS.fff')

ans =

01:40.fff

>> datestr (now, 'MM:SS:FFF')

ans =

01:40:625

>> datestr (now, 'qq-YY')

ans =

qq-11

>> datestr (now, 'DDDD MMMM dd')
??? Error using ==> formatdate at 218
Unrecognized minute format.  Format string: DDDD MMMM dd.

Error in ==> dateformverify at 32
S = char(formatdate([y,mo,d,h,minute,s],dateformstr,islocal));
Error in ==> datestr at 197
S = dateformverify(dtnumber, dateformstr, islocal);
 
>> datestr (datevec ('16:20', 'HH:MM am'))
??? Error using ==> dtstr2dtvecmx
Failed on converting date string to date number.

Error in ==> datevec at 121
            y = dtstr2dtvecmx(t,icu_dtformat);