octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60107] datenum : 1 day missing from output?


From: José Luis García Pallero
Subject: [Octave-bug-tracker] [bug #60107] datenum : 1 day missing from output?
Date: Wed, 3 Jul 2024 05:05:21 -0400 (EDT)

Follow-up Comment #7, bug #60107 (group octave):

I think the bug is in _datevec_ instead of _datenum_

In Octave:


>> datevec('2000','yyyy')
ans =

   2000      1      0      0      0      0


In Matlab:


>> datevec('2000','yyyy')
ans =

   2000      1      1      0      0      0


I agree with Paul Netsaver that a year only date should be undestood as
January 1st at 00:00:00

I asked a question in Discourse as I didn't see this bug report.
https://octave.discourse.group/t/differences-in-serial-day-number-between-octave-and-matlab/5726/2


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60107>

_______________________________________________
Mensaje enviado vía Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

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