[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45635] Restore support for ISO8601 basic cale
From: |
Alexander List |
Subject: |
[Octave-bug-tracker] [bug #45635] Restore support for ISO8601 basic calendar date |
Date: |
Mon, 27 Jul 2015 08:16:15 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/43.0.2357.130 Chrome/43.0.2357.130 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?45635>
Summary: Restore support for ISO8601 basic calendar date
Project: GNU Octave
Submitted by: alexlist
Submitted on: Mon 27 Jul 2015 08:16:14 AM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Changeset 13848 (40e32fe44aaa) [1] fixing bug #34586 [2] also included this
change:
- dateform{30} = "yyyymmdd";
+ dateform{30} = "yyyy-mm-dd";
This means that dateform{30} was changed from ISO 8601 basic calendar date to
ISO 8601 extended calendar date.
https://en.wikipedia.org/wiki/ISO_8601#Calendar_dates
http://www.cl.cam.ac.uk/~mgk25/iso-time.html
The description of the changeset and the bug do not contain a hint that this
was intended, and it means an incompatible change:
octave:1> test=datestr("2005-12-31")
test = 31-Dec-2005
octave:2> test=datestr("20051231")
error: datevec: none of the standard formats match the DATE string
error: called from:
error: /usr/share/octave/3.8.2/m/time/datevec.m at line 133, column 11
error: /usr/share/octave/3.8.2/m/time/datestr.m at line 181, column 7
We suggest that the basic format is added back in, to restore backwards
compatibility.
The attached patch is against a checkout from hg clone
http://www.octave.org/hg/octave done today.
[0] http://hg.savannah.gnu.org/hgweb/octave/rev/40e32fe44aaa
[1] http://savannah.gnu.org/bugs/?34586
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 27 Jul 2015 08:16:14 AM GMT Name: datestr.diff Size: 1kB By:
alexlist
<http://savannah.gnu.org/bugs/download.php?file_id=34533>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45635>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45635] Restore support for ISO8601 basic calendar date,
Alexander List <=