[Top][All Lists]

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

Re: problem parsing time out of datetime object

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 ==> FALSE

Shouldn't this be true?

Sent from:

Help-octave mailing list

> printf("%f\n",datenum('2013/05/29 00:00:00','yyyy/mm/dd HH:MM:SS'))
> printf("%f\n",datenum('2013/05/29 00:00:01','yyyy/mm/dd HH:MM:SS'))

Tom Dean

reply via email to

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