help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: etime


From: Andreas Weber
Subject: Re: etime
Date: Wed, 14 Aug 2013 18:45:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7

Am 14.08.2013 17:49, schrieb Lysie Legentil:
> can anyone help me with etime I have read a lot but still cannot
> understand the thing.
> Here is the question:
> find the number of seconds between 08h 27m 30s on 18
> February 2003, and 19h 35m 09s on 13 August 2008.

Hi Lysie. This looks like homework. Usually we don't do that.
If you need some examples using etime you could type
"edit etime" on the octave command line and have a look at the tests at
the bottom. You should be able to figure out the answer from this.

%! t1 = [1993, 8, 20, 4, 56, 1];
%! t2 = [1993, 8, 21, 4, 56, 1];
...
%! assert (etime (t2, t1), 86400);

HTH Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]