|
From: | Thomas D. Dean |
Subject: | Re: problem parsing time out of datetime object |
Date: | Fri, 20 Oct 2017 21:14:19 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 10/20/17 16:43, AG wrote:
Maybe I'm missing something but I don't think the underlying representation is right. try this: dt_num = datenum('2013/05/29 00:00:00','yyyy/mm/dd HH:MM:SS') dt_num2 = datenum('2013/05/29 00:00:01','yyyy/mm/dd HH:MM:SS')dt_num>dt_num2 ==> FALSEShouldn't this be true? -- Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html _______________________________________________ Help-octave mailing list address@hidden https://lists.gnu.org/mailman/listinfo/help-octave
> printf("%f\n",datenum('2013/05/29 00:00:00','yyyy/mm/dd HH:MM:SS')) 735383.000000 > printf("%f\n",datenum('2013/05/29 00:00:01','yyyy/mm/dd HH:MM:SS')) 735383.000012 Tom Dean
[Prev in Thread] | Current Thread | [Next in Thread] |