Path: news.mathworks.com!not-for-mail
From: "Steve " <steveDEL.bachmeierDEL@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: converting times
Date: Fri, 27 Jul 2007 22:46:54 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <f8dsku$f5u$1@fred.mathworks.com>
References: <f8d2nc$a3a$1@fred.mathworks.com> <f8d4nj$nn$1@fred.mathworks.com>
Reply-To: "Steve " <steveDEL.bachmeierDEL@yahoo.com>
NNTP-Posting-Host: webapp-00-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185576414 15550 172.30.248.35 (27 Jul 2007 22:46:54 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 27 Jul 2007 22:46:54 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1034320
Xref: news.mathworks.com comp.soft-sys.matlab:421493



Both suggestions work very well.  Thank you both.

"Daniel Walker " <dwamail.nospam@gmx.ch> wrote in message <f8d4nj$nn$1@fred.mathworks.com>...
> 
> 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.