Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Double representation of clock.
Date: Fri, 6 Nov 2009 12:50:04 +0000 (UTC)
Organization: ICT Solutions BV
Lines: 9
Message-ID: <hd161s$8am$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257511804 8534 172.30.248.37 (6 Nov 2009 12:50:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 12:50:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1931257
Xref: news.mathworks.com comp.soft-sys.matlab:582998


Is there a defined way to convert the output of clock
[year month day hour minute seconds]
to a double representation?

The best I came up with is:
seconds + (100*minutes) + (1000*hour) + (1000000*day) +
(100000000*month) + (10000000000*year)

But I get the impression there must be an easy way...