Error in datestr.m in Octave-3.2.0 MingW

John W. Eaton jwe at octave.org
Tue Jun 23 15:34:39 CDT 2009


On 23-Jun-2009, Michael Goffioul wrote:

| On Tue, Jun 23, 2009 at 9:30 PM, Michael
| Goffioul<michael.goffioul at gmail.com> wrote:
| > On Tue, Jun 23, 2009 at 9:22 PM, John W. Eaton<jwe at octave.org> wrote:
| >> OK.  Does the generated config.h file for Octave define HAVE_STRFTIME?
| >> You can also look at the output of
| >>
| >>  octave_config_info ("DEFS")
| >>
| >> If HAVE_STRFTIME is not defined on these systems, then the bug is
| >> likely in the strftime.c that is part of Octave.  Maybe we need to
| >> find a newer version.
| >
| > (current archive build, with MSVC)
| >
| > octave:4> strfind(octave_config_info ("DEFS"), 'STRFTIME')
| > ans = [](1x0)
| 
| However,
| 
| octave:8> datestr(datenum(1970, 1, 1))
| ans = 01-Jan-1970
| octave:9> datestr(datenum(1970, 1, 2))
| ans = 02-Jan-1970

I would expect anything on or after 1-1-1970 to work.  What about
earlier dates?

jwe



More information about the Bug-octave mailing list