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

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

[Octave-patch-tracker] [patch #9964] datevec.m: add some fairly often se


From: Markus Mützel
Subject: [Octave-patch-tracker] [patch #9964] datevec.m: add some fairly often seen date/time formats
Date: Sat, 29 Jul 2023 09:17:34 -0400 (EDT)

Follow-up Comment #2, patch #9964 (project octave):

Fwiw, in Matlab R2023a:

>> datevec ("1998-07")

ans =

        1998           7           1           0           0           0

>> datevec ("1998")
Error using datevec
Cannot parse date 1998.
 
>> datevec ("1998-07-19T15:03:47Z")
Error using datevec
Failed to lookup month of year.
 
>> datevec ("1998-07-19T15:03:47.219Z")
Error using datevec
Failed to lookup month of year.
 


And Octave 8.2.0:

>> datevec ("1998-07")
error: datevec: none of the standard formats match the DATE string
error: called from
    datevec at line 139 column 11
>> datevec ("1998")
error: datevec: none of the standard formats match the DATE string
error: called from
    datevec at line 139 column 11
>> datevec ("1998-07-19T15:03:47Z")
error: datevec: none of the standard formats match the DATE string
error: called from
    datevec at line 139 column 11
>> datevec ("1998-07-19T15:03:47.219Z")
error: datevec: none of the standard formats match the DATE string
error: called from
    datevec at line 139 column 11


So, at least the first format `"yyyy-mm"` should be supported for
compatibility.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9964>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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