Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: subtracting time difference
Date: Sat, 11 Aug 2007 13:54:40 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 20
Message-ID: <f9kf2v$suv$1@fred.mathworks.com>
References: <f9jh3u$dnm$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186840480 29663 172.30.248.38 (11 Aug 2007 13:54:40 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 11 Aug 2007 13:54:40 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:423524


jason:
<SNIP may have an older ML version...

> datenum doesnt recognise SS.FFF.

well, here it does

<pre class="code">

% the data
     t1=datenum('09.12.111','MM.SS.FFF');
     t2=datenum('09.12.222','MM.SS.FFF');
     td=t2-t1
% the check
     datestr(t1,'MM.SS.FFF')
     datestr(td,'SS.FFF')

</pre>

us