help-octave
[Top][All Lists]
Advanced

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

Re: Struggling to write t0 from sometime ago


From: Kire Pudsje
Subject: Re: Struggling to write t0 from sometime ago
Date: Fri, 18 Aug 2017 19:54:23 +0200


On Fri, Aug 18, 2017 at 7:42 PM, Mphumzi Tshentu <address@hidden> wrote:
Would please help me, I tried to write t0 from 09h27min35sec in 17 February 2002. I want to get the time elapsed from that date up to a certain date later , for an example 13h22min40sec in 18 June 2004.

I tried writing in the following way and tried several other ways I don't seem to get it right.

octave-3.2.4.exe:1> t0=(clock(09:27:35),17-Feb-02


I would use a datenum.
days from your date reference up to now:
now-datenum(2002,2,17,9,27,35)
fractional part will be like fractional days, so times 24 is hours.
 

reply via email to

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