Thread Subject: Double representation of clock.

Subject: Double representation of clock.

From: Jan Arjen kRAAK

Date: 6 Nov, 2009 12:50:04

Message: 1 of 2

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...

Subject: Double representation of clock.

From: Jos

Date: 6 Nov, 2009 14:32:02

Message: 2 of 2

"Jan Arjen kRAAK" <jan.arjen.kraak@ict.nl.remove.this> wrote in message <hd161s$8am$1@fred.mathworks.com>...
> 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...

help now

Jos

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com