[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43181] Function datenum incorectly handles tw
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #43181] Function datenum incorectly handles two digit years |
Date: |
Wed, 10 Sep 2014 03:21:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 |
Follow-up Comment #4, bug #43181 (project octave):
What I mean is for you to pass in the format string or template that you want
your date strings to be parsed, for example:
n = datenum ("26-jun-00 14:56:00", "dd-mmm-yy HH:MM:SS")
n = 7.3066e+05
This way you control the format that you are expecting to handle.
Also the way I read the paragraph in question, it applies to formats that do
have two-digit years, such as the built-in format "mm/dd/yy" or any custom
format that you might come up with. So it is not invalid, but most of the
built-in formats only parse four-digit years.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43181>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/