[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 197
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970 |
Date: |
Tue, 21 Sep 2010 01:52:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100819 Iceweasel/3.5.11 (like Firefox/3.5.11) |
Update of bug #31079 (project octave):
Status: None => Ready For Test
_______________________________________________________
Follow-up Comment #2:
Here is what I see with the current development sources of Octave:
octave:1> datestr (datenum (1969, 1, 1), 0)
ans = 01-Jan-1969 00:00:00
octave:2> datestr (datenum (1901, 1, 1), 0)
ans = 01-Jan-1901 00:00:00
octave:3> datestr (datenum (1795, 1, 1), 0)
ans = 01-Jan-1795 00:00:00
I also see the same results with Octave 3.2.4 installed from the Debian
package.
But my system has glibc.
Maybe using the mktime module from gnulib would solve the problem, as that is
based on code from glibc? I checked in the following change:
http://hg.savannah.gnu.org/hgweb/octave/rev/0de4eff677d6
This change includes tests based on the examples in this bug report. If you
have additional tests that would help, please submit a changeset.
It would be helpful if someone could test my change on systems where the
failure was previously happening and report back.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31079>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, J-D Bonjour, 2010/09/19
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, Philip Nienhuis, 2010/09/20
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970,
John W. Eaton <=
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, Ben Abbott, 2010/09/21
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, John W. Eaton, 2010/09/22
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, Ben Abbott, 2010/09/22
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, Philip Nienhuis, 2010/09/24
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, Philip Nienhuis, 2010/09/24
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, John W. Eaton, 2010/09/24
- [Octave-bug-tracker] [bug #31079] DATESTR function buggy before year 1970, Philip Nienhuis, 2010/09/24