Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: converting times
Date: Fri, 27 Jul 2007 15:58:43 +0000 (UTC)
Organization: MeteoSwiss / ETH Zurich
Lines: 12
Message-ID: <f8d4nj$nn$1@fred.mathworks.com>
References: <f8d2nc$a3a$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185551923 759 172.30.248.36 (27 Jul 2007 15:58:43 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 27 Jul 2007 15:58:43 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1065993
Xref: news.mathworks.com comp.soft-sys.matlab:421423




or... if you once end-up with a matlab datenum-format, you can also use datevec to get the hours/min/sec

>> num = datenum('19-May-2000 11:36:00');
>> vec = datevec(num);
>> dec_time = vec(:,4)+vec(:,5)/60+vec(:,6)/3600

dec_time =

   11.6000

D.