[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64563] datevec: "mmm dd yyyy" matched instead
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #64563] datevec: "mmm dd yyyy" matched instead of "mmmyyyy" standard format |
Date: |
Wed, 13 Sep 2023 10:13:14 -0400 (EDT) |
Follow-up Comment #11, bug #64563 (project octave):
I'm not sure if it is possible in principle that datevec can correctly match
all formats that have a numeric identifier in datestr. (I haven't checked that
though.)
It took me a while to notice that "AUG2013" can be matched by the pattern 'mmm
dd yyyy'. You could say that's a surprise. But it's documented behavior of
strptime which is the backbone of datevec.
It's very difficult to predict which new surprises are possible if new
patterns are added.
I'm not against adding new patterns in principle. Just be aware that you need
to be very, very careful when doing that.
I agree that the issue about the day being set to 0 deserves its own report.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64563>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/