[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65219] datenum/datestr/datevec: Inconsistent
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #65219] datenum/datestr/datevec: Inconsistent behavior for '' input |
Date: |
Mon, 29 Jan 2024 04:26:36 -0500 (EST) |
Follow-up Comment #2, bug#65219 (group octave):
Fwiw, in Matlab R2023b:
>> datestr(datenum(''))
Warning: Usage of DATENUM with empty date character vectors or empty strings
is not supported.
Results may change in future versions.
> In datenum (line 96)
ans =
0×11 empty char array
>> datestr(datevec(''))
Warning: Usage of DATEVEC with empty date character vectors or empty strings
is not supported.
> In datevec (line 103)
ans =
0×11 empty char array
>> datestr('')
Warning: Usage of DATENUM with empty date character vectors or empty strings
is not supported.
Results may change in future versions.
> In datenum (line 96)
In datestr (line 179)
ans =
0×11 empty char array
>> datevec('')
Warning: Usage of DATEVEC with empty date character vectors or empty strings
is not supported.
> In datevec (line 103)
ans =
0×6 empty double matrix
>> datenum('')
Warning: Usage of DATENUM with empty date character vectors or empty strings
is not supported.
Results may change in future versions.
> In datenum (line 96)
ans =
0×1 empty double column vector
Empty output seems reasonable for empty input imho.
I didn't check whether they already announced somewhere *how* their behavior
will change for that input.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65219>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/